From cd33da68fa2992e88280f31405ca4520c1445a1f Mon Sep 17 00:00:00 2001 From: phyusin Date: Tue, 20 Nov 2018 10:02:39 +0630 Subject: [PATCH] update shift query for payment method --- app/controllers/reports/payment_method_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/reports/payment_method_controller.rb b/app/controllers/reports/payment_method_controller.rb index 7ac35cdd..659b51e4 100644 --- a/app/controllers/reports/payment_method_controller.rb +++ b/app/controllers/reports/payment_method_controller.rb @@ -10,7 +10,7 @@ class Reports::PaymentMethodController < BaseReportController from, to = get_date_range_from_params - @shift_sale_range = Sale.get_by_shift_sale(from,to,Sale::SALE_STATUS_COMPLETED) + @shift_sale_range = Sale.get_by_shift_sale_by_item(from,to,Sale::SALE_STATUS_COMPLETED) @shift = '' if params[:shift_name].to_i != 0