Browse Source

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

develop
Development for People 3 years ago
committed by GitHub
parent
commit
095a6e186f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      erpnext/non_profit/doctype/membership/membership.py

4
erpnext/non_profit/doctype/membership/membership.py

@ -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…
Cancel
Save