Skip to content

Commit

Permalink
MM Parser: Ignore kWh NOCHARGE
Browse files Browse the repository at this point in the history
  • Loading branch information
tlocke committed Oct 15, 2024
1 parent 74f5974 commit 5f29b23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chellow/e/bill_parsers/mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def _handle_0461(headers, pre_record, record):
mpan_core = parse_mpan_core(parts["mpan_core"])
headers["mpan_core"] = mpan_core
units = CONSUMPTION_UNITS_LOOKUP[parts["units"].strip()]
if units == "kWh":
register_code = parts["register_code"].strip()
if units == "kWh" and not register_code.startswith("NOCHARGE"):
headers["kwh"] += Decimal(parts["quantity"])

prev_read_date_str = parts["prev_read_date"].strip()
Expand Down

0 comments on commit 5f29b23

Please sign in to comment.