Skip to content

Commit

Permalink
Merge pull request #756 from OpenUpSA/hack-795-adding-subtotal-rows
Browse files Browse the repository at this point in the history
Hack 795 adding subtotal rows
  • Loading branch information
michaelglenister authored Sep 27, 2024
2 parents 06adefa + 524d2ff commit 566454b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion municipal_finance/management/commands/make_sub_totals.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ def handle(self, *args, **options):
"0170",
"0180",
],
"0310": [
"0210",
"0220",
"0230",
"0240",
"0250",
"0260",
"0270",
"0280",
"0290",
"0300",
],
"0320": ["0190", "0310"],
"0430": ["0350", "0360", "0370", "0380", "0390", "0400", "0410", "0420"],
"0490": ["0450", "0460", "0470", "0480"],
"0500": ["0430", "0490"],
Expand Down Expand Up @@ -72,5 +85,7 @@ def handle(self, *args, **options):
demarcation_code=muni_code,
amount_type=amount_type_model,
period_length="year",
amount=sub_total,
defaults={
'amount': sub_total,
}
)

0 comments on commit 566454b

Please sign in to comment.