mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
fix(accounts): use party currency amount in payment orders
(cherry picked from commit 3a10e6c5a0)
This commit is contained in:
@@ -1012,7 +1012,8 @@ def make_payment_order(source_name, target_doc=None):
|
||||
{
|
||||
"reference_doctype": source.reference_doctype,
|
||||
"reference_name": source.reference_name,
|
||||
"amount": source.grand_total,
|
||||
# Journal Entry debits the supplier in party account currency.
|
||||
"amount": source.outstanding_amount,
|
||||
"supplier": source.party,
|
||||
"payment_request": source_name,
|
||||
"mode_of_payment": source.mode_of_payment,
|
||||
|
||||
Reference in New Issue
Block a user