Automatically set payment schedule if not specified

- fix failing test cases
- fix failing tests for recurring documents
- others
This commit is contained in:
tunde
2017-09-07 06:52:15 +01:00
parent dba6f841e6
commit 32aa7c1e68
3 changed files with 23 additions and 15 deletions

View File

@@ -302,7 +302,7 @@ def get_due_date_from_template(template_name, posting_date):
return due_date
def validate_due_date(posting_date, due_date, party_type, party, company):
def validate_due_date(posting_date, due_date, party_type, party):
if getdate(due_date) < getdate(posting_date):
frappe.throw(_("Due Date cannot be before Posting Date"))
else: