fix get_due_date function to return date as string

This commit is contained in:
tunde 2017-09-04 19:30:01 +01:00
parent c6d60e1de3
commit 4163c9529d

View File

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