fix: rename non existent doctype field to the right one (#29055)
This commit is contained in:
parent
b8c212aaef
commit
095a6e186f
@ -409,7 +409,7 @@ def get_plan_from_razorpay_id(plan_id):
|
|||||||
def set_expired_status():
|
def set_expired_status():
|
||||||
frappe.db.sql("""
|
frappe.db.sql("""
|
||||||
UPDATE
|
UPDATE
|
||||||
`tabMembership` SET `status` = 'Expired'
|
`tabMembership` SET `membership_status` = 'Expired'
|
||||||
WHERE
|
WHERE
|
||||||
`status` not in ('Cancelled') AND `to_date` < %s
|
`membership_status` not in ('Cancelled') AND `to_date` < %s
|
||||||
""", (nowdate()))
|
""", (nowdate()))
|
||||||
|
Loading…
Reference in New Issue
Block a user