Commit e4d34fb
Use absolute value for taxable amount when calculating tax on negative expenses
Tax amount was calculated using the raw (negative) transaction amount, producing
a negative tax value that the backend treated as zero. Wrapping in Math.abs
ensures the tax calculation always receives a positive amount.
Co-authored-by: Roji Philip <rojiphil@users.noreply.github.com>1 parent 0ce2161 commit e4d34fb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| |||
0 commit comments