From 4163c9529d84feaa2bed2180e28adaca65f67330 Mon Sep 17 00:00:00 2001 From: tunde Date: Mon, 4 Sep 2017 19:30:01 +0100 Subject: [PATCH] fix `get_due_date` function to return date as string --- erpnext/accounts/party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index 8991459f49..32c7e3e8d6 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -270,7 +270,7 @@ def get_due_date(posting_date, party_type, party): due_date = posting_date template_name = get_pyt_term_template(party, party_type) if template_name: - due_date = get_due_date_from_template(template_name, posting_date) + due_date = get_due_date_from_template(template_name, posting_date).strftime("%Y-%m-%d") return due_date