Skip to content

Commit 566454b

Browse files
Merge pull request #756 from OpenUpSA/hack-795-adding-subtotal-rows
Hack 795 adding subtotal rows
2 parents 06adefa + 524d2ff commit 566454b

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

municipal_finance/management/commands/make_sub_totals.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ def handle(self, *args, **options):
2525
"0170",
2626
"0180",
2727
],
28+
"0310": [
29+
"0210",
30+
"0220",
31+
"0230",
32+
"0240",
33+
"0250",
34+
"0260",
35+
"0270",
36+
"0280",
37+
"0290",
38+
"0300",
39+
],
40+
"0320": ["0190", "0310"],
2841
"0430": ["0350", "0360", "0370", "0380", "0390", "0400", "0410", "0420"],
2942
"0490": ["0450", "0460", "0470", "0480"],
3043
"0500": ["0430", "0490"],
@@ -72,5 +85,7 @@ def handle(self, *args, **options):
7285
demarcation_code=muni_code,
7386
amount_type=amount_type_model,
7487
period_length="year",
75-
amount=sub_total,
88+
defaults={
89+
'amount': sub_total,
90+
}
7691
)

0 commit comments

Comments
 (0)