Remove unused letter_cumulative field

I have searched for this in the code and can't see it being used
anywhere so have removed it!
This commit is contained in:
David McDonald
2022-04-25 11:11:45 +01:00
parent c63660d56d
commit c5d729b5f2
2 changed files with 12 additions and 15 deletions

View File

@@ -406,7 +406,6 @@ def get_sum_billing_units(billing_units, month=None):
def get_free_paid_breakdown_for_billable_units(year, free_sms_fragment_limit, billing_units):
cumulative = 0
letter_cumulative = 0
sms_units = [x for x in billing_units if x['notification_type'] == 'sms']
letter_units = [x for x in billing_units if x['notification_type'] == 'letter']
for month in get_months_for_financial_year(year):
@@ -424,11 +423,9 @@ def get_free_paid_breakdown_for_billable_units(year, free_sms_fragment_limit, bi
letter_total = 0
for x in letter_billing:
letter_total += x.cost
letter_cumulative += letter_total
yield {
'name': month,
'letter_total': letter_total,
'letter_cumulative': letter_cumulative,
'paid': breakdown['paid'],
'free': breakdown['free'],
'letters': letter_billing