diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index 2c56dc40ed..d50ed95f6a 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -977,7 +977,7 @@ def make_payment_order(source_name, target_doc=None): def update_item(source_doc, target_doc, source_parent): target_doc.bank_account = source_parent.bank_account target_doc.amount = source_parent.base_paid_amount - target_doc.account = source_parent.paid_to or source_parent.paid_from + target_doc.account = source_parent.paid_to target_doc.payment_entry = source_doc.name target_doc.supplier = source_doc.party target_doc.mode_of_payment = source_doc.mode_of_payment