From 64bb022acd42e5d080c86e25a098d355af9533ec Mon Sep 17 00:00:00 2001 From: yarzar_code Date: Thu, 10 Sep 2020 13:02:40 +0630 Subject: [PATCH] daily sale report fixed --- app/controllers/reports/dailysale_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/reports/dailysale_controller.rb b/app/controllers/reports/dailysale_controller.rb index 479bcfe8..42595c29 100755 --- a/app/controllers/reports/dailysale_controller.rb +++ b/app/controllers/reports/dailysale_controller.rb @@ -4,7 +4,7 @@ class Reports::DailysaleController < BaseReportController def index from, to = get_date_range_from_params @sale_data = Sale.daily_sales_list(from,to) - @tax = SaleTax.get_tax(from,to) + @tax_profiles = TaxProfile.group(:name).order(:order_by).pluck(:name) @from = from @to = to @payment_methods = PaymentMethodSetting.where("is_active='1'").pluck("payment_method")