Skip to content

Commit

Permalink
Fix rounding of tax_amount to 2 decimal precision
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishabh17 committed May 22, 2024
1 parent f378a03 commit 845727d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/fyle/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def create_expense_objects(expenses: List[Dict], workspace_id):
'project_id': expense['project_id'],
'expense_number': expense['expense_number'],
'org_id': expense['org_id'],
'tax_amount': expense['tax_amount'] if expense['tax_amount'] else 0,
'tax_amount': round(expense['tax_amount'], 2) if expense['tax_amount'] else 0,
'tax_group_id': expense['tax_group_id'],
'claim_number': expense['claim_number'],
'amount': round(expense['amount'], 2),
Expand Down

0 comments on commit 845727d

Please sign in to comment.