fix: pass account paid information to postprocess

This commit is contained in:
Mangesh-Khairnar 2019-05-05 20:43:48 +05:30
parent b89db7f5a8
commit 6bc48b8bfb

View File

@ -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