Merge pull request #16094 from rohitwaghchaure/validate_due_date_for_purchase_invoice

[Fix] Due Date cannot be before Posting Date should consider supplier invoice date for purchase invoice
This commit is contained in:
Nabin Hait
2018-11-27 13:09:16 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ class AccountsController(TransactionBase):
validate_due_date(self.posting_date, self.due_date,
"Customer", self.customer, self.company, self.payment_terms_template)
elif self.doctype == "Purchase Invoice":
validate_due_date(self.posting_date, self.due_date,
validate_due_date(self.bill_date or self.posting_date, self.due_date,
"Supplier", self.supplier, self.company, self.bill_date, self.payment_terms_template)
def set_price_list_currency(self, buying_or_selling):