From a496c4358175cc7dae3978db8273d30932349026 Mon Sep 17 00:00:00 2001 From: tunde Date: Tue, 5 Sep 2017 17:36:21 +0100 Subject: [PATCH] fix test --- erpnext/accounts/party.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index 0c790d6369..08571dd89e 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -275,6 +275,7 @@ def get_due_date(posting_date, party_type, party): if party_type == "Supplier": supplier_type = frappe.db.get_value(party_type, party, fieldname="supplier_type") template_name = frappe.db.get_value("Supplier Type", supplier_type, fieldname="payment_terms") + print("template name:", template_name) due_date = get_due_date_from_template(template_name, posting_date).strftime("%Y-%m-%d") return due_date