2023-09-19 18:39:44 +05:30
|
|
|
import frappe
|
|
|
|
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
subscription = frappe.qb.DocType("Subscription")
|
|
|
|
frappe.qb.update(subscription).set(
|
2024-01-04 11:22:42 +05:30
|
|
|
subscription.generate_invoice_at, "Beginning of the current subscription period"
|
2023-09-19 18:39:44 +05:30
|
|
|
).where(subscription.generate_invoice_at_period_start == 1).run()
|