refactor: make payments app a soft dependency (#33245)
refactor: make payment app a soft dependency
This commit is contained in:
@@ -333,8 +333,18 @@ $.extend(erpnext.utils, {
|
||||
}
|
||||
frappe.ui.form.make_quick_entry(doctype, null, null, new_doc);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// check if payments app is installed on site, if not warn user.
|
||||
check_payments_app: () => {
|
||||
if (frappe.boot.versions && !frappe.boot.versions.payments) {
|
||||
const marketplace_link = '<a href="https://frappecloud.com/marketplace/apps/payments">Marketplace</a>'
|
||||
const github_link = '<a href="https://github.com/frappe/payments/">GitHub</a>'
|
||||
const msg = __("payments app is not installed. Please install it from {0} or {1}", [marketplace_link, github_link])
|
||||
frappe.msgprint(msg);
|
||||
}
|
||||
|
||||
},
|
||||
});
|
||||
|
||||
erpnext.utils.select_alternate_items = function(opts) {
|
||||
|
||||
Reference in New Issue
Block a user