fixed cancellation fee charge

This commit is contained in:
Joaquin Ossa 2024-10-02 09:30:33 +02:00
parent ae865b8848
commit f37d419a1a

View file

@ -88,12 +88,12 @@ select
er.rejected_fee_in_txn_currency,
er.rejected_fee_in_gbp,
case
when ct.is_cancellation_threshold_surpassed is true
when ct.is_cancellation_threshold_surpassed is true and v.is_cancelled is true
then {{ cancellation_fee }}
else 0
end as cancelled_fee_in_txn_currency,
case
when ct.is_cancellation_threshold_surpassed is true
when ct.is_cancellation_threshold_surpassed is true and v.is_cancelled is true
then rate * {{ cancellation_fee }}
else 0
end as cancelled_fee_in_gbp,