feat: set payment order type on mapping

This commit is contained in:
Mangesh-Khairnar 2019-05-06 19:54:11 +05:30
parent f709f330ce
commit e8bea2e936
2 changed files with 2 additions and 1 deletions

View File

@ -972,7 +972,7 @@ def get_party_and_account_balance(company, date, paid_from=None, paid_to=None, p
def make_payment_order(source_name, target_doc=None):
from frappe.model.mapper import get_mapped_doc
def set_missing_values(source, target):
pass
target.payment_order_type = "Payment Entry"
def update_item(source_doc, target_doc, source_parent):
target_doc.bank_account = source_parent.bank_account

View File

@ -427,6 +427,7 @@ def get_subscription_details(reference_doctype, reference_name):
def make_payment_order(source_name, target_doc=None):
from frappe.model.mapper import get_mapped_doc
def set_missing_values(source, target):
target.payment_order_type = "Payment Request"
target.append('references', {
'reference_doctype': source.reference_doctype,
'reference_name': source.reference_name,