Edit in report

This commit is contained in:
San Wai Lwin
2018-08-06 14:44:26 +06:30
parent 10d93a658c
commit 7b74de9b3a
12 changed files with 66 additions and 139 deletions

View File

@@ -12,11 +12,7 @@ class CardSaleTran < ApplicationRecord
if payment_type.blank?
payment = ''
else
if payment_type == 'unionpay'
payment = " app LIKE 'cup'"
else
payment = " app LIKE '#{payment_type}'"
end
payment = " app LIKE '#{payment_type}'"
end
if status_type.blank?
@@ -45,11 +41,7 @@ class CardSaleTran < ApplicationRecord
if payment_type.blank?
payment = ''
else
if payment_type == 'unionpay'
payment = " app LIKE 'cup'"
else
payment = " app LIKE '#{payment_type}'"
end
payment = " app LIKE '#{payment_type}'"
end
if from.present? && to.present?