2015-03-03 14:55:30 +05:30
|
|
|
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
2013-08-05 14:59:54 +05:30
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2014-02-14 15:47:51 +05:30
|
|
|
frappe.provide('erpnext');
|
2012-01-20 13:47:16 +05:30
|
|
|
|
2012-05-07 18:00:57 +05:30
|
|
|
// add toolbar icon
|
2012-01-20 13:47:16 +05:30
|
|
|
$(document).bind('toolbar_setup', function() {
|
2014-02-14 15:47:51 +05:30
|
|
|
frappe.app.name = "ERPNext";
|
2014-04-15 16:30:55 +05:30
|
|
|
|
2015-07-13 16:56:37 +05:30
|
|
|
frappe.help_feedback_link = '<p><a class="text-muted" \
|
|
|
|
href="https://discuss.erpnext.com">Feedback</a></p>'
|
|
|
|
|
|
|
|
|
2015-08-05 14:49:32 +05:30
|
|
|
$('.navbar-home').html('<img class="erpnext-icon" src="'+
|
|
|
|
frappe.urllib.get_base_url()+'/assets/erpnext/images/erp-icon.svg" />');
|
2014-08-22 15:21:27 +05:30
|
|
|
|
2015-02-26 20:27:41 +05:30
|
|
|
$('[data-link="docs"]').attr("href", "https://manual.erpnext.com")
|
2012-04-10 11:35:19 +05:30
|
|
|
});
|
2015-01-01 15:59:34 +05:30
|
|
|
|
|
|
|
// doctypes created via tree
|
2015-03-09 15:47:15 +05:30
|
|
|
$.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"
|
|
|
|
});
|