Files
erpnext/erpnext/public/js
Vishakh Desai f25bf6dbd2 fix: improved rounding adjustment when applying discount (#46720)
* fix: rounding adjustment in apply_discount_amount taxes_and_totals

* refactor: minor changes

* fix: set the rounding difference while calculating tax total in the last tax row and add test case

* fix: failing test case

* fix: made changes in get_total_for_discount_amount in taxes_and_totals

* fix: failing test cases

* fix: changes as per review

* refactor: remove unnecessary use of flt

* refactor: improve logic

* refactor: minor change

* refactor: minor changes

* fix: add a test case for applying discount with previous row total in taxes

* fix: failing test case

* refactor: flatter code, remove `flt` usage for accuracy

---------

Co-authored-by: Sagar Vora <sagar@resilient.tech>
2025-03-31 09:25:09 +00:00
..
2024-03-10 19:45:40 +05:30
2024-03-19 12:03:36 +01:00
2024-03-10 19:45:40 +05:30
2024-03-19 12:03:36 +01:00
2024-03-10 19:45:40 +05:30
2024-03-10 19:45:40 +05:30
2024-03-10 19:45:40 +05:30
2024-03-10 19:45:40 +05:30
2021-05-07 14:51:05 +05:30
2024-03-10 19:45:40 +05:30
2021-05-07 14:51:05 +05:30
2024-03-19 12:03:36 +01:00
2024-03-10 19:45:40 +05:30
2024-03-10 19:45:40 +05:30
2024-03-10 19:45:40 +05:30
2025-03-19 15:25:50 +05:30
2024-03-10 19:45:40 +05:30
2024-03-10 19:45:40 +05:30