hi
i want to invoice sales order with deduction of some discount .
For that, i update the invoice jour.invoice amount after udating the salesparmline.lineamount (packing & invoicng)
but i am getting the error and posting is failed
please guide, i am posting here for 2nd time, i am stuck on it over a month.
i have debug all classes related to packing sales totals and invoicng too but still got this error after update invoicing amount
720 is updated amount after deduction of discount
800 is originial amount
errrors of transaction are given below
Posting
Sales order: 006110
Voucher INV-10000822
The transactions on voucher INV-10000822 do not balance as per 6/3/2025. (accounting currency: -80.00 - reporting currency: -80.00)
Voucher transactions
Voucher INV-10000822, date 6/3/2025, account 140100--, transaction currency amount 749.92, accounting currency amount 749.92, reporting currency amount 749.92, currency USD, text
Voucher INV-10000822, date 6/3/2025, account 500150----, transaction currency amount -749.92, accounting currency amount -749.92, reporting currency amount -749.92, currency USD, text
Voucher INV-10000822, date 6/3/2025, account 140100--, transaction currency amount -749.92, accounting currency amount -749.92, reporting currency amount -749.92, currency USD, text
Voucher INV-10000822, date 6/3/2025, account 500100----, transaction currency amount 749.92, accounting currency amount 749.92, reporting currency amount 749.92, currency USD, text
Voucher INV-10000822, date 6/3/2025, account 401100----, transaction currency amount -800.00, accounting currency amount -800.00, reporting currency amount -800.00, currency USD, text
Voucher INV-10000822, date 6/3/2025, account 130100--, transaction currency amount 720.00, accounting currency amount 720.00, reporting currency amount 720.00, currency USD, text
Posting has been canceled.