Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
tlocke committed Dec 6, 2024
1 parent 51fb9a3 commit 7c00cb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chellow/e/bill_parsers/mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,10 @@ def _handle_1500(headers, pre_record, record):
vat=12,
)
net = Decimal("0.00") + Decimal(parts["net"]) / Decimal("100")
gross = Decimal("0.00") + Decimal(parts["gross"]) / Decimal("100")
if "late_payment" in headers:
net += headers["late_payment"]
gross += headers["late_payment"]
del headers["late_payment"]

return {
Expand All @@ -291,7 +293,7 @@ def _handle_1500(headers, pre_record, record):
"kwh": headers["kwh"],
"net": net,
"vat": Decimal("0.00") + Decimal(parts["vat"]) / Decimal("100"),
"gross": Decimal("0.00") + Decimal(parts["gross"]) / Decimal("100"),
"gross": gross,
"breakdown": headers["breakdown"],
"reads": headers["reads"],
}
Expand Down

0 comments on commit 7c00cb4

Please sign in to comment.