From cfad7e17f12e0df8d050cf7f9af3dd6ec7657eba Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Sat, 21 Feb 2026 12:08:37 +0530 Subject: [PATCH] fix: remove supplier invoice date/posting date validation (cherry picked from commit 7cff0ba6266297092a4c678aa5d1fc40877d61df) --- erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py index 801820fbdb5..2d6d9fd8c51 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py @@ -1745,10 +1745,6 @@ class PurchaseInvoice(BuyingController): project_doc.db_update() def validate_supplier_invoice(self): - if self.bill_date: - if getdate(self.bill_date) > getdate(self.posting_date): - frappe.throw(_("Supplier Invoice Date cannot be greater than Posting Date")) - if self.bill_no: if cint(frappe.get_single_value("Accounts Settings", "check_supplier_invoice_uniqueness")): fiscal_year = get_fiscal_year(self.posting_date, company=self.company, as_dict=True)