Skip to content

Commit

Permalink
Merge pull request #754 from OpenUpSA/feature-796-raud-amount-types
Browse files Browse the repository at this point in the history
Handling RAUD amount types
  • Loading branch information
michaelglenister authored Sep 19, 2024
2 parents da45248 + afadbcd commit d9ca0bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion municipal_finance/fixtures/initial/amount_type_v2.csv
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ TRFR,Transferred from Provincial Departments to Municipalities
SCHD,Approved payment schedule
TABB,Tabled Budget
ITY1,ITY1
ITY2,ITY2
ITY2,ITY2
RAUD,Restructured Audit
4 changes: 2 additions & 2 deletions municipal_finance/update/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

PERIOD_CODE_RE = re.compile(
r"^(?P<year>\d{4})"
r"(?P<type>IBY1|IBY2|ADJB|ORGB|AUDA|PAUD|ITY1|ITY2|TABB|TRFR|SCHD)?"
r"(?P<type>IBY1|IBY2|ADJB|ORGB|AUDA|PAUD|ITY1|ITY2|TABB|TRFR|SCHD|RAUD)?"
r"(M(?P<month>\d{2}))?$"
)

Expand All @@ -35,7 +35,7 @@ def period_code_details(code):
details["month"] or details["year"],
)
else:
return None
raise Exception(f"Period code does not exist: {code}")


def all_to_code_dict(model):
Expand Down

0 comments on commit d9ca0bc

Please sign in to comment.