Skip to content

Commit 5830508

Browse files
author
Alan Christie
committed
style: coins now displays unit and organisation
1 parent 4dbf5c1 commit 5830508

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tools/coins.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,13 @@ def main(c_args: argparse.Namespace) -> None:
9191
num_processing_charges += 1
9292

9393
invoice: Dict[str, Any] = {
94-
"Product": product_id,
95-
"Product Name": product_name,
96-
"Claim": (p_rv.msg["product"].get("claim", {}).get("id", "-"),
97-
p_rv.msg["product"].get("claim", {}).get("name", "-"),),
94+
"Product": (product_name, product_id),
95+
"Unit": (p_rv.msg["product"]["unit"]["name"],
96+
p_rv.msg["product"]["unit"]["id"]),
97+
"Organisation": (p_rv.msg["product"]["organisation"]["name"],
98+
p_rv.msg["product"]["organisation"]["id"]),
99+
"Claim": (p_rv.msg["product"].get("claim", {}).get("name", "-"),
100+
p_rv.msg["product"].get("claim", {}).get("id", "-")),
98101
"Allowance": str(allowance),
99102
"Allowance Multiplier": str(allowance_multiplier),
100103
"Limit": str(limit),

0 commit comments

Comments
 (0)