mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-08 04:53:26 +00:00
fix: subscription prepaid date validation (#24373)
This commit is contained in:
@@ -333,7 +333,7 @@ class Subscription(Document):
|
||||
if not self.generate_invoice_at_period_start:
|
||||
return False
|
||||
|
||||
if self.is_new_subscription():
|
||||
if self.is_new_subscription() and getdate(nowdate()) >= getdate(self.current_invoice_start):
|
||||
return True
|
||||
|
||||
# Check invoice dates and make sure it doesn't have outstanding invoices
|
||||
|
||||
Reference in New Issue
Block a user