Skip to content

Commit

Permalink
fix: rename non existent doctype field to the right one (#29055)
Browse files Browse the repository at this point in the history
  • Loading branch information
developmentforpeople authored Dec 28, 2021
1 parent b8c212a commit 095a6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/non_profit/doctype/membership/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def get_plan_from_razorpay_id(plan_id):
def set_expired_status():
frappe.db.sql("""
UPDATE
`tabMembership` SET `status` = 'Expired'
`tabMembership` SET `membership_status` = 'Expired'
WHERE
`status` not in ('Cancelled') AND `to_date` < %s
`membership_status` not in ('Cancelled') AND `to_date` < %s
""", (nowdate()))

0 comments on commit 095a6e1

Please sign in to comment.