Merge pull request #27087 from deepeshgarg007/validate_due_date_fix

fix: Ignore due date validations if payment terms are copied from orders/receipts
This commit is contained in:
Nabin Hait 2021-08-24 21:10:44 +05:30 committed by GitHub
commit b99a8cb96e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,8 @@ class AccountsController(TransactionBase):
self.set_due_date()
self.set_payment_schedule()
self.validate_payment_schedule_amount()
self.validate_due_date()
if not self.get('ignore_default_payment_terms_template'):
self.validate_due_date()
self.validate_advance_entries()
def validate_non_invoice_documents_schedule(self):