Skip to content

Commit

Permalink
Bill parser CSV: Ignore ',' in decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
tlocke committed Sep 7, 2023
1 parent 99a3613 commit 1f0c4f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chellow/e/bill_parsers/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def make_raw_bills(self):
def to_decimal(self, dec_index, dec_name, is_money=False):
try:
dec_str = self.vals[dec_index]
dec_str = dec_str.replace(",", "")
dec = Decimal(dec_str)
if is_money:
dec += Decimal("0.00")
Expand Down

0 comments on commit 1f0c4f6

Please sign in to comment.