fix: Total Amount fix in journal entry (#17880)
This commit is contained in:
parent
3720126ee9
commit
ebeafa55ca
@ -458,6 +458,7 @@ class JournalEntry(AccountsController):
|
||||
pay_to_recd_from = frappe.db.get_value(d.party_type, d.party,
|
||||
"customer_name" if d.party_type=="Customer" else "supplier_name")
|
||||
|
||||
if pay_to_recd_from and pay_to_recd_from == d.party:
|
||||
party_amount += (d.debit_in_account_currency or d.credit_in_account_currency)
|
||||
party_account_currency = d.account_currency
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user