From 2bf44dc326ea285bd9a65daa7ea6a7269ac8629d Mon Sep 17 00:00:00 2001 From: Dany Robert Date: Wed, 26 Mar 2025 11:37:35 +0530 Subject: [PATCH] fix: update posting date before running validations (cherry picked from commit d04dbd8ed92f2c4be34657dc03476d310ecab604) --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()