fix: Subscription update patch

(cherry picked from commit 277dade9f9a0a439d435dd6a53474aae67cd8f24)
This commit is contained in:
Deepesh Garg 2024-01-04 11:22:42 +05:30 committed by Mergify
parent 18575e137c
commit 7640feaaa7

View File

@ -4,5 +4,5 @@ import frappe
def execute():
subscription = frappe.qb.DocType("Subscription")
frappe.qb.update(subscription).set(
subscription.generate_invoice_at, "Beginning of the currency subscription period"
subscription.generate_invoice_at, "Beginning of the current subscription period"
).where(subscription.generate_invoice_at_period_start == 1).run()