fix: Do not check for cancelled invoices

This commit is contained in:
Deepesh Garg
2025-01-31 11:44:51 +05:30
parent 5a1851dfe3
commit 701fc02050

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",