mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
The sheet count was not calculated properly (it should be billable_units/notifications_sent).
And it turns out the sheet count is not required for the report. This PR takes out the columns to resolve the group by error.
This commit is contained in:
@@ -912,7 +912,10 @@ def set_up_usage_data(start_date):
|
||||
notifications_sent=2, billable_unit=1, rate=.35, postage='first')
|
||||
create_ft_billing(bst_date=one_month_later, service=service, notification_type='letter',
|
||||
template=letter_template,
|
||||
notifications_sent=6, billable_unit=2, rate=.45, postage='second')
|
||||
notifications_sent=4, billable_unit=2, rate=.45, postage='second')
|
||||
create_ft_billing(bst_date=one_week_later, service=service, notification_type='letter',
|
||||
template=letter_template,
|
||||
notifications_sent=2, billable_unit=2, rate=.45, postage='second')
|
||||
|
||||
create_ft_billing(bst_date=one_week_earlier, service=service_sms_only, notification_type='sms',
|
||||
template=sms_template, rate=0.11, billable_unit=12)
|
||||
|
||||
Reference in New Issue
Block a user