Add letter type when getting billing data for financial year

This commit is contained in:
Rebecca Law
2017-12-18 10:40:13 +00:00
parent e0e64d51d5
commit 995d70740a
3 changed files with 32 additions and 17 deletions

View File

@@ -214,7 +214,6 @@ def populate_monthly_billing(year):
print('Email: {}'.format(email_res.monthly_totals))
print('Letter: {}'.format(letter_res.monthly_totals))
service_ids = get_service_ids_that_need_billing_populated(
start_date=datetime(2016, 5, 1), end_date=datetime(2017, 8, 16)
)
@@ -223,13 +222,12 @@ def populate_monthly_billing(year):
if year == 2016:
start = 4
# for service_id in service_ids:
# print('Starting to populate data for service {}'.format(str(service_id)))
# print('Starting populating monthly billing for {}'.format(year))
# for i in range(start, end):
# print('Population for {}-{}'.format(i, year))
# populate(service_id, year, i)
populate('56fa9fd8-61de-4688-8bc7-2908a77367df', year, 10)
for service_id in service_ids:
print('Starting to populate data for service {}'.format(str(service_id)))
print('Starting populating monthly billing for {}'.format(year))
for i in range(start, end):
print('Population for {}-{}'.format(i, year))
populate(service_id, year, i)
@notify_command()