Skip to content

Commit

Permalink
fix: remove bad default for Membership From Date
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal committed May 24, 2022
1 parent e9968cc commit 34928d2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions erpnext/non_profit/doctype/membership/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ def validate_membership_period(self):
frappe.throw(_("You can only renew if your membership expires within 30 days"))

self.from_date = add_days(last_membership.to_date, 1)
elif frappe.session.user == "Administrator":
self.from_date = self.from_date
else:
self.from_date = nowdate()

if frappe.db.get_single_value("Non Profit Settings", "billing_cycle") == "Yearly":
self.to_date = add_years(self.from_date, 1)
Expand Down

0 comments on commit 34928d2

Please sign in to comment.