fix: Do not check for cancelled invoices
(cherry picked from commit 701fc02050)
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user