Development for People
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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())) |
|
|