From 9542da80c5ce7d55ccf900215a4d9ae149ca0160 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Sat, 21 Aug 2021 19:36:38 +0530 Subject: [PATCH] test: Update test cases --- erpnext/accounts/doctype/payment_entry/payment_entry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index ef143ba5715..fbf8f8a495f 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -700,11 +700,11 @@ class PaymentEntry(AccountsController): "against_voucher": d.reference_name }) - allocated_amount_in_company_currency = flt(flt(d.allocated_amount) * flt(d.exchange_rate), - self.precision("paid_amount")) + allocated_amount_in_company_currency = abs(flt(flt(d.allocated_amount) * flt(d.exchange_rate), + self.precision("paid_amount"))) gle.update({ - dr_or_cr + "_in_account_currency": d.allocated_amount, + dr_or_cr + "_in_account_currency": abs(d.allocated_amount), dr_or_cr: allocated_amount_in_company_currency })