From e85f22fb79f2ed5a2bcb5781aa6f840a86e53cd3 Mon Sep 17 00:00:00 2001 From: superuser Date: Tue, 27 Jun 2017 12:11:07 +0630 Subject: [PATCH] update for bill --- app/controllers/api/bill_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/bill_controller.rb b/app/controllers/api/bill_controller.rb index 0408c858..16ebf256 100644 --- a/app/controllers/api/bill_controller.rb +++ b/app/controllers/api/bill_controller.rb @@ -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)