update bill

This commit is contained in:
Aung Myo
2017-06-27 14:16:48 +06:30
parent c1646b812e
commit f762664912
6 changed files with 5 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ class Api::BillController < Api::ApiController
#shop detail
shop_details = Shop.find(1)
customer= Customer.where('customer_id=' + @sale_data.customer_id)
customer= Customer.find(@sale_data.customer_id)
# get member information
member_info = Customer.get_member_account(customer)

View File

@@ -14,5 +14,4 @@ class BaseOrigamiController < ActionController::Base
@current_user ||= Employee.find_by_token_session(session[:session_token]) if session[:session_token]
end
end