diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 673a65dae55..a57e313e2e9 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -267,8 +267,8 @@ class SalesInvoice(SellingController): self.indicator_title = _("Paid") def validate(self): - super().validate() self.validate_auto_set_posting_time() + super().validate() if not (self.is_pos or self.is_debit_note): self.so_dn_required()