def get_company_for_memberships(): company = frappe.db.get_single_value("Non Profit Settings", "company") if not company: from erpnext.healthcare.setup import get_company company = get_company() return company
def get_company_for_donations(): company = frappe.db.get_single_value('Non Profit Settings', 'donation_company') if not company: from erpnext.healthcare.setup import get_company company = get_company() return company