2018-03-26 12:14:27 +00:00
|
|
|
const frappe = require('frappejs');
|
2018-04-19 14:31:35 +00:00
|
|
|
const { registerReportRoutes } = require('../reports');
|
2018-03-26 12:14:27 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
start() {
|
|
|
|
// require modules
|
|
|
|
frappe.registerModels(require('../models'), 'client');
|
|
|
|
|
|
|
|
frappe.registerView('List', 'Customer', require('../models/doctype/Party/CustomerList.js'));
|
|
|
|
|
2018-04-19 14:31:35 +00:00
|
|
|
registerReportRoutes();
|
2018-03-26 12:14:27 +00:00
|
|
|
|
|
|
|
frappe.desk.menu.addItem('ToDo', '#list/ToDo');
|
2018-04-08 18:33:32 +00:00
|
|
|
frappe.desk.menu.addItem('Chart of Accounts', '#tree/Account');
|
2018-03-26 12:14:27 +00:00
|
|
|
frappe.desk.menu.addItem('Items', '#list/Item');
|
|
|
|
frappe.desk.menu.addItem('Customers', '#list/Customer');
|
2018-03-29 07:28:56 +00:00
|
|
|
frappe.desk.menu.addItem('Quotation', '#list/Quotation');
|
2018-03-26 12:14:27 +00:00
|
|
|
frappe.desk.menu.addItem('Invoice', '#list/Invoice');
|
2018-03-28 12:12:13 +00:00
|
|
|
frappe.desk.menu.addItem('Journal Entry', '#list/JournalEntry');
|
2018-03-27 13:16:40 +00:00
|
|
|
frappe.desk.menu.addItem('Address', "#list/Address");
|
|
|
|
frappe.desk.menu.addItem('Contact', "#list/Contact");
|
2018-03-26 12:14:27 +00:00
|
|
|
frappe.desk.menu.addItem('Settings', () => frappe.desk.showFormModal('SystemSettings'));
|
2018-04-16 13:03:54 +00:00
|
|
|
frappe.desk.menu.addItem('General Ledger', '#report/general-ledger');
|
2018-03-26 12:14:27 +00:00
|
|
|
|
2018-04-08 18:33:32 +00:00
|
|
|
frappe.router.default = '#tree/Account';
|
2018-03-26 12:14:27 +00:00
|
|
|
|
|
|
|
frappe.router.show(window.location.hash);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|