mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:05:17 -05:00
Fix letter rate bug in migtion
This commit is contained in:
@@ -467,7 +467,7 @@ def migrate_data_to_ft_billing(start_date, end_date):
|
|||||||
coalesce((select rates.rate from rates
|
coalesce((select rates.rate from rates
|
||||||
where n.notification_type = rates.notification_type and n.sent_at > rates.valid_from
|
where n.notification_type = rates.notification_type and n.sent_at > rates.valid_from
|
||||||
order by rates.valid_from desc limit 1), 0) as sms_rate,
|
order by rates.valid_from desc limit 1), 0) as sms_rate,
|
||||||
coalesce((select l.rate from letter_rates l where n.rate_multiplier = l.sheet_count
|
coalesce((select l.rate from letter_rates l where n.billable_units = l.sheet_count
|
||||||
and s.crown = l.crown and n.notification_type='letter'), 0) as letter_rate,
|
and s.crown = l.crown and n.notification_type='letter'), 0) as letter_rate,
|
||||||
coalesce(n.international, false) as international,
|
coalesce(n.international, false) as international,
|
||||||
n.billable_units,
|
n.billable_units,
|
||||||
|
|||||||
Reference in New Issue
Block a user