We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 73323da + fe9ee3f commit 4bf75f5Copy full SHA for 4bf75f5
erpnext/accounts/doctype/subscription/subscription.py
@@ -624,8 +624,8 @@ def cancel_subscription(self):
624
to_prorate = frappe.db.get_single_value('Subscription Settings', 'prorate')
625
self.status = 'Cancelled'
626
self.cancelation_date = nowdate()
627
- if to_generate_invoice:
628
- self.generate_invoice(prorate=to_prorate)
+ # if to_generate_invoice:
+ # self.generate_invoice(prorate=to_prorate)
629
self.save()
630
631
def restart_subscription(self):
0 commit comments