|
|
|
@ -98,7 +98,8 @@
|
|
|
|
|
refund_fee,
|
|
|
|
|
sum(if(t.transaction_type='Debit' AND t.refund_id is NOT NULL and o.pre_authorization=1,t.clearing_amount,0))
|
|
|
|
|
pre_refund_fee,
|
|
|
|
|
sum(t.tax_amount) tax_amount,
|
|
|
|
|
ifnull(sum(if(t.transaction_type = 'Credit' and t.channel != 'Settlement',t.tax_amount,if(t.channel !=
|
|
|
|
|
'Settlement',-t.tax_amount,0))),0) tax_amount,
|
|
|
|
|
ifnull(sum(if(t.transaction_type = 'Credit' and t.channel != 'Settlement',t.settle_amount,if(t.channel !=
|
|
|
|
|
'Settlement',-t.settle_amount,0))),0) total_settle_amount,
|
|
|
|
|
ifnull(sum(if(t.transaction_type = 'Credit' and t.channel != 'Settlement',t.royal_surcharge,if(t.channel !=
|
|
|
|
|