fix: test for invoice returns

This commit is contained in:
Gursheen Anand 2023-11-02 17:38:43 +05:30
parent 3d9938221a
commit 1f4b381748

View File

@ -1073,8 +1073,8 @@ class PaymentEntry(AccountsController):
gle.update(
{
dr_or_cr: allocated_amount_in_company_currency,
dr_or_cr + "_in_account_currency": d.allocated_amount,
dr_or_cr: abs(allocated_amount_in_company_currency),
dr_or_cr + "_in_account_currency": abs(d.allocated_amount),
"against_voucher_type": against_voucher_type,
"against_voucher": against_voucher,
"cost_center": cost_center,