Merged PR 3019: fixed cancellation fee charge
# Description Fixed cancellation fee charge that was being applied to every verification when the threshold was passed, now it will be applied only to those that are actually cancelled # Checklist - [x] The edited models and dependants run properly with production data. - [x] The edited models are sufficiently documented. - [x] The edited models contain PK tests, and I've ran and passed them. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. fixed cancellation fee charge
This commit is contained in:
commit
e001691ed4
1 changed files with 2 additions and 2 deletions
|
|
@ -88,12 +88,12 @@ select
|
||||||
er.rejected_fee_in_txn_currency,
|
er.rejected_fee_in_txn_currency,
|
||||||
er.rejected_fee_in_gbp,
|
er.rejected_fee_in_gbp,
|
||||||
case
|
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 }}
|
then {{ cancellation_fee }}
|
||||||
else 0
|
else 0
|
||||||
end as cancelled_fee_in_txn_currency,
|
end as cancelled_fee_in_txn_currency,
|
||||||
case
|
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 }}
|
then rate * {{ cancellation_fee }}
|
||||||
else 0
|
else 0
|
||||||
end as cancelled_fee_in_gbp,
|
end as cancelled_fee_in_gbp,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue