Edit filter

This commit is contained in:
San Wai Lwin
2018-08-06 13:52:47 +06:30
parent af6aae5cb6
commit 10d93a658c
6 changed files with 40 additions and 62 deletions

View File

@@ -8,11 +8,9 @@ class Reports::CardSaleTranController < BaseReportController
["Master Payment","master"], ["JCB Payment","jcb"],["UnionPay Payment","unionpay"],
["Alipay Payment","alipay"]]
@sales = Sale.all
# byebug
payment_type = params[:payment_type]
# from = params[:from]
# to = params[:to]
from, to = get_date_range_from_params
status = 'Approved'
@shift_sale_range = ''