Update ft_billing with real postage data

* Changed update_fact_billing DAO function to update the table with the
real data for postage instead of hard-coding in 'second'.
* Added a test for the create nightly billing task to test that rows
with different postage are being inserted correctly.
This commit is contained in:
Katie Smith
2018-09-28 16:32:18 +01:00
parent f41e0f05ec
commit 71d28035dd
2 changed files with 47 additions and 1 deletions

View File

@@ -237,7 +237,7 @@ def update_fact_billing(data, process_day):
process_day,
data.crown,
data.letter_page_count,
"second")
data.postage)
billing_record = create_billing_record(data, rate, process_day)
table = FactBilling.__table__
'''