mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-26 22:52:10 +01:00
fix: remove supplier invoice date/posting date validation
(cherry picked from commit 7cff0ba626)
This commit is contained in:
@@ -1729,10 +1729,6 @@ class PurchaseInvoice(BuyingController):
|
|||||||
project_doc.db_update()
|
project_doc.db_update()
|
||||||
|
|
||||||
def validate_supplier_invoice(self):
|
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 self.bill_no:
|
||||||
if cint(frappe.db.get_single_value("Accounts Settings", "check_supplier_invoice_uniqueness")):
|
if cint(frappe.db.get_single_value("Accounts Settings", "check_supplier_invoice_uniqueness")):
|
||||||
fiscal_year = get_fiscal_year(self.posting_date, company=self.company, as_dict=True)
|
fiscal_year = get_fiscal_year(self.posting_date, company=self.company, as_dict=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user