Merge pull request #39139 from frappe/mergify/bp/version-15-hotfix/pr-39138

fix: Subscription update patch (#39138)
This commit is contained in:
Deepesh Garg 2024-01-04 11:25:21 +05:30 committed by GitHub
commit b834abbd4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()