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

@@ -9,13 +9,11 @@ class Transactions::CardSaleTransController < ApplicationController
["Master Payment","master"], ["JCB Payment","jcb"],["UnionPay Payment","unionpay"],
["Alipay Payment","alipay"]]
@sales = Sale.all
# byebug
payment_type = params[:payment_type]
sale_id = params[:sale_id]
status_type = params[:status_type]
# from = params[:from]
# to = params[:to]
from, to = get_date_range_from_params
if sale_id.nil? && from.nil? && to.nil? && payment_method.nil? && status_type.nil?