Skip to content

Commit

Permalink
fix(E Invoice Import): ignore linked Purchase Invoices that are cance…
Browse files Browse the repository at this point in the history
…lled (#46)
  • Loading branch information
barredterra authored Jan 9, 2025
1 parent 93de6ed commit c19fb7c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ def onload(self):

invoices = frappe.get_list(
"Purchase Invoice",
filters={"bill_no": self.id, "supplier": self.supplier, "company": self.company},
filters={
"bill_no": self.id,
"supplier": self.supplier,
"company": self.company,
"docstatus": ("!=", 2),
},
fields=["name", "e_invoice_import"],
)
linked_invoice = next(
Expand Down

0 comments on commit c19fb7c

Please sign in to comment.