fix: document naming rule not working for subscription invoices (#27394)

This commit is contained in:
Frappe PR Bot
2021-09-08 19:11:29 +05:30
committed by GitHub
parent d0a7141e35
commit 8871bd4bfb

View File

@@ -288,6 +288,7 @@ class Subscription(Document):
invoice.to_date = self.current_invoice_end
invoice.flags.ignore_mandatory = True
invoice.set_missing_values()
invoice.save()
if self.submit_invoice: