Skip to content

Commit cfad7e1

Browse files
mihir-kandoimergify[bot]
authored andcommitted
fix: remove supplier invoice date/posting date validation
(cherry picked from commit 7cff0ba)
1 parent 00ebeec commit cfad7e1

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,10 +1745,6 @@ def update_project(self):
17451745
project_doc.db_update()
17461746

17471747
def validate_supplier_invoice(self):
1748-
if self.bill_date:
1749-
if getdate(self.bill_date) > getdate(self.posting_date):
1750-
frappe.throw(_("Supplier Invoice Date cannot be greater than Posting Date"))
1751-
17521748
if self.bill_no:
17531749
if cint(frappe.get_single_value("Accounts Settings", "check_supplier_invoice_uniqueness")):
17541750
fiscal_year = get_fiscal_year(self.posting_date, company=self.company, as_dict=True)

0 commit comments

Comments
 (0)