fix: Do not check for cancelled invoices

(cherry picked from commit 701fc02050)
This commit is contained in:
Deepesh Garg
2025-01-31 11:44:51 +05:30
committed by Mergify
parent 0d94eba021
commit b612ab5823

View File

@@ -634,9 +634,7 @@ class Subscription(Document):
""" """
invoice = frappe.get_all( invoice = frappe.get_all(
self.invoice_document_type, self.invoice_document_type,
{ {"subscription": self.name, "docstatus": ("<", 2)},
"subscription": self.name,
},
limit=1, limit=1,
order_by="to_date desc", order_by="to_date desc",
pluck="name", pluck="name",