Skip to content

Commit

Permalink
update mapping for replacement
Browse files Browse the repository at this point in the history
stakeholders suggest a change to the mapping to differentiate lost process fee from lost replacement fee
  • Loading branch information
adamshire123 committed Jan 30, 2024
1 parent 8f94ccb commit 3501ff4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ uploaded to the bursar's system.
| ---------------------- | ----------------------------------------- |
| DAMAGEDITEMFINE | Library damaged [barcode] |
| LOSTITEMPROCESSFEE | Library lost [barcode] |
| LOSTITEMREPLACEMENTFEE | Library lost [barcode] |
| LOSTITEMREPLACEMENTFEE | Library repl [barcode] |
| OTHER | Library other [barcode] |
| OVERDUEFINE | Library overdue [barcode] |
| RECALLEDOVERDUEFINE | Library recalled [barcode] |
Expand Down
2 changes: 1 addition & 1 deletion lambdas/bursar_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def generate_description(fine_fee_type: str, barcode: str) -> str:
elif fine_fee_type == "LOSTITEMPROCESSFEE":
mapped_type = "Library lost"
elif fine_fee_type == "LOSTITEMREPLACEMENTFEE":
mapped_type = "Library lost"
mapped_type = "Library repl"
elif fine_fee_type == "OVERDUEFINE":
mapped_type = "Library overdue"
elif fine_fee_type == "OTHER":
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/test.csv
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"MITID","STUDENTNAME","DETAILCODE","DESCRIPTION","AMOUNT","EFFECTIVEDATE","BILLINGTERM"
"12345678","Transfer, Bursar","ROLH","Library overdue 39080036507785","123.45","03/01/2023","2023SP"
"12345678","Transfer, Bursar","ROLH","Library overdue 39080036507785","0.82","03/01/2023","2023SP"
"12345678","Transfer, Bursar","ROLH","Library lost 39080037379556","300","03/01/2023","2023SP"
"12345678","Transfer, Bursar","ROLH","Library repl 39080037379556","300","03/01/2023","2023SP"
"12345678","Transfer, Bursar","ROLH","Library overdue 39080037379556","1.45","03/01/2023","2023SP"
"09876","The Beaver, Tim","ROLH","Library lost 39080002699707","100","03/01/2023","2023SP"
"09876","The Beaver, Tim","ROLH","Library repl 39080002699707","100","03/01/2023","2023SP"
"09876","The Beaver, Tim","ROLH","Library overdue 39080002699707","14","03/01/2023","2023SP"
"09876","The Beaver, Tim","ROLH","Library other 39080002699707","10","03/01/2023","2023SP"
"09876","The Beaver, Tim","ROLH","Library damaged 39080002699707","10","03/01/2023","2023SP"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bursar_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_billing_term(test_date, expected) -> None:
"test_input,expected",
[
({"type": "OVERDUEFINE", "barcode": "12345"}, "Library overdue 12345"),
({"type": "LOSTITEMREPLACEMENTFEE", "barcode": "12345"}, "Library lost 12345"),
({"type": "LOSTITEMREPLACEMENTFEE", "barcode": "12345"}, "Library repl 12345"),
({"type": "LOSTITEMPROCESSFEE", "barcode": "12345"}, "Library lost 12345"),
({"type": "RECALLEDOVERDUEFINE", "barcode": "12345"}, "Library recalled 12345"),
({"type": "DAMAGEDITEMFINE", "barcode": "12345"}, "Library damaged 12345"),
Expand Down

0 comments on commit 3501ff4

Please sign in to comment.