Edit filter
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user