daily sale net sales & tax

This commit is contained in:
yarzar_code
2020-08-12 14:34:53 +06:30
parent 51bb2d0fcf
commit 7aef3d7bac
4 changed files with 83 additions and 55 deletions

View File

@@ -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")