fix: rename non existent doctype field to the right one (#29055)

This commit is contained in:
Development for People 2021-12-28 08:38:22 +00:00 committed by GitHub
parent b8c212aaef
commit 095a6e186f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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