We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8037a0e commit 768a888Copy full SHA for 768a888
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py
@@ -628,10 +628,12 @@ def validate_supplier_invoice(self):
628
pi = frappe.db.sql('''select name from `tabPurchase Invoice`
629
where
630
bill_no = %(bill_no)s
631
+ and supplier = %(supplier)s
632
and name != %(name)s
633
and docstatus < 2
634
and posting_date between %(year_start_date)s and %(year_end_date)s''', {
635
"bill_no": self.bill_no,
636
+ "supplier": self.supplier,
637
"name": self.name,
638
"year_start_date": fiscal_year.year_start_date,
639
"year_end_date": fiscal_year.year_end_date
0 commit comments