mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-05 16:48:31 -04:00
Rename sms_fragments to sms_chargeable_units
This field caused some confusion and lots of unnecessary work
to our colleague because of unclear name.
The field was named sms_fragments, where in fact the value of
the field is: those sms fragments that go above free allowance
multiplied by the rate multiplier.
The new name was chosen through consultation with colleagues
who use billing report the most.
This commit is contained in:
@@ -84,7 +84,7 @@ def get_data_for_billing_report():
|
||||
"service_id": str(s.service_id),
|
||||
"service_name": s.service_name,
|
||||
"sms_cost": float(s.sms_cost),
|
||||
"sms_fragments": s.chargeable_billable_sms,
|
||||
"sms_chargeable_units": s.chargeable_billable_sms,
|
||||
"total_letters": 0,
|
||||
"letter_cost": 0,
|
||||
"letter_breakdown": ""
|
||||
@@ -104,7 +104,7 @@ def get_data_for_billing_report():
|
||||
"service_id": str(data.service_id),
|
||||
"service_name": data.service_name,
|
||||
"sms_cost": 0,
|
||||
"sms_fragments": 0,
|
||||
"sms_chargeable_units": 0,
|
||||
"total_letters": data.total_letters,
|
||||
"letter_cost": float(data.letter_cost),
|
||||
"letter_breakdown": ""
|
||||
|
||||
Reference in New Issue
Block a user