mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Monthly billing has been updated to populate for letters.
This commit is contained in:
@@ -50,6 +50,11 @@ def get_billing_data_for_month(service_id, start_date, end_date, notification_ty
|
||||
)
|
||||
)
|
||||
|
||||
if notification_type == LETTER_TYPE:
|
||||
results.extend(billing_letter_data_per_month_query(
|
||||
service_id=service_id, start_date=start_date, end_date=end_date)
|
||||
)
|
||||
|
||||
return results
|
||||
|
||||
|
||||
@@ -165,10 +170,11 @@ def billing_letter_data_per_month_query(service_id, start_date, end_date):
|
||||
NotificationHistory.notification_type,
|
||||
month,
|
||||
NotificationHistory.rate_multiplier,
|
||||
NotificationHistory.international
|
||||
NotificationHistory.international,
|
||||
LetterRate.rate
|
||||
).order_by(
|
||||
month,
|
||||
rate_multiplier()
|
||||
).all()
|
||||
|
||||
return results
|
||||
return results
|
||||
|
||||
Reference in New Issue
Block a user