mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 17:34:47 +00:00
Merge branch 'version-13-hotfix' into emp-adv-status-v13
This commit is contained in:
@@ -100,7 +100,9 @@ def capture_razorpay_donations(*args, **kwargs):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# to avoid capturing subscription payments as donations
|
# to avoid capturing subscription payments as donations
|
||||||
if payment.description and "subscription" in str(payment.description).lower():
|
if payment.invoice_id or (
|
||||||
|
payment.description and "subscription" in str(payment.description).lower()
|
||||||
|
):
|
||||||
return
|
return
|
||||||
|
|
||||||
donor = get_donor(payment.email)
|
donor = get_donor(payment.email)
|
||||||
|
|||||||
@@ -61,10 +61,6 @@ class Membership(Document):
|
|||||||
frappe.throw(_("You can only renew if your membership expires within 30 days"))
|
frappe.throw(_("You can only renew if your membership expires within 30 days"))
|
||||||
|
|
||||||
self.from_date = add_days(last_membership.to_date, 1)
|
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":
|
if frappe.db.get_single_value("Non Profit Settings", "billing_cycle") == "Yearly":
|
||||||
self.to_date = add_years(self.from_date, 1)
|
self.to_date = add_years(self.from_date, 1)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ form_grid_templates = {"items": "templates/form_grid/material_request_grid.html"
|
|||||||
|
|
||||||
class MaterialRequest(BuyingController):
|
class MaterialRequest(BuyingController):
|
||||||
def get_feed(self):
|
def get_feed(self):
|
||||||
return _("{0}: {1}").format(self.status, self.material_request_type)
|
return
|
||||||
|
|
||||||
def check_if_already_pulled(self):
|
def check_if_already_pulled(self):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user