2015-03-03 09:25:30 +00:00
|
|
|
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2014-02-14 10:17:51 +00:00
|
|
|
frappe.provide('erpnext');
|
2012-01-20 08:17:16 +00:00
|
|
|
|
2012-05-07 12:30:57 +00:00
|
|
|
// add toolbar icon
|
2012-01-20 08:17:16 +00:00
|
|
|
$(document).bind('toolbar_setup', function() {
|
2014-02-14 10:17:51 +00:00
|
|
|
frappe.app.name = "ERPNext";
|
2014-04-15 11:00:55 +00:00
|
|
|
|
2015-07-13 11:26:37 +00:00
|
|
|
frappe.help_feedback_link = '<p><a class="text-muted" \
|
|
|
|
href="https://discuss.erpnext.com">Feedback</a></p>'
|
|
|
|
|
|
|
|
|
2015-08-05 09:19:32 +00:00
|
|
|
$('.navbar-home').html('<img class="erpnext-icon" src="'+
|
|
|
|
frappe.urllib.get_base_url()+'/assets/erpnext/images/erp-icon.svg" />');
|
2014-08-22 09:51:27 +00:00
|
|
|
|
2015-02-26 14:57:41 +00:00
|
|
|
$('[data-link="docs"]').attr("href", "https://manual.erpnext.com")
|
2016-05-02 13:07:47 +00:00
|
|
|
$('[data-link="issues"]').attr("href", "https://github.com/frappe/erpnext/issues")
|
2012-04-10 06:05:19 +00:00
|
|
|
});
|
2015-01-01 10:29:34 +00:00
|
|
|
|
|
|
|
// doctypes created via tree
|
2015-03-09 10:17:15 +00:00
|
|
|
$.extend(frappe.create_routes, {
|
|
|
|
"Customer Group": "Sales Browser/Customer Group",
|
|
|
|
"Territory": "Sales Browser/Territory",
|
|
|
|
"Item Group": "Sales Browser/Item Group",
|
|
|
|
"Sales Person": "Sales Browser/Sales Person",
|
|
|
|
"Account": "Accounts Browser/Account",
|
|
|
|
"Cost Center": "Accounts Browser/Cost Center"
|
|
|
|
});
|
|
|
|
|
|
|
|
// preferred modules for breadcrumbs
|
|
|
|
$.extend(frappe.breadcrumbs.preferred, {
|
|
|
|
"Item Group": "Stock",
|
|
|
|
"Customer Group": "Selling",
|
|
|
|
"Supplier Type": "Buying",
|
|
|
|
"Territory": "Selling",
|
|
|
|
"Sales Person": "Selling",
|
|
|
|
"Sales Partner": "Selling",
|
|
|
|
"Brand": "Selling"
|
|
|
|
});
|