Merge pull request #24349 from Anurag810/dunning_fixes

fix: not able to create dunning from sales invoice
This commit is contained in:
Anurag Mishra 2021-01-12 18:40:10 +05:30 committed by GitHub
commit 7ff06d6ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1699,6 +1699,7 @@ def get_mode_of_payment_info(mode_of_payment, company):
where mpa.parent = mp.name and mpa.company = %s and mp.enabled = 1 and mp.name = %s""",
(company, mode_of_payment), as_dict=1)
@frappe.whitelist()
def create_dunning(source_name, target_doc=None):
from frappe.model.mapper import get_mapped_doc
from erpnext.accounts.doctype.dunning.dunning import get_dunning_letter_text, calculate_interest_and_amount