2018-03-26 17:44:27 +05:30
|
|
|
const frappe = require('frappejs');
|
2018-04-28 20:23:30 +05:30
|
|
|
const registerReportRoutes = require('../reports/view');
|
2018-03-26 17:44:27 +05:30
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
start() {
|
|
|
|
// require modules
|
|
|
|
frappe.registerModels(require('../models'), 'client');
|
|
|
|
|
|
|
|
frappe.registerView('List', 'Customer', require('../models/doctype/Party/CustomerList.js'));
|
|
|
|
|
2018-04-19 20:01:35 +05:30
|
|
|
registerReportRoutes();
|
2018-03-26 17:44:27 +05:30
|
|
|
|
|
|
|
frappe.desk.menu.addItem('ToDo', '#list/ToDo');
|
2018-04-09 00:03:32 +05:30
|
|
|
frappe.desk.menu.addItem('Chart of Accounts', '#tree/Account');
|
2018-03-26 17:44:27 +05:30
|
|
|
frappe.desk.menu.addItem('Items', '#list/Item');
|
|
|
|
frappe.desk.menu.addItem('Customers', '#list/Customer');
|
2018-03-29 12:58:56 +05:30
|
|
|
frappe.desk.menu.addItem('Quotation', '#list/Quotation');
|
2018-04-28 19:56:26 +05:30
|
|
|
frappe.desk.menu.addItem('Sales Order', '#list/SalesOrder');
|
|
|
|
frappe.desk.menu.addItem('Fulfillment', '#list/Fulfillment');
|
2018-03-26 17:44:27 +05:30
|
|
|
frappe.desk.menu.addItem('Invoice', '#list/Invoice');
|
2018-04-26 15:53:27 +05:30
|
|
|
frappe.desk.menu.addItem('Bill', '#list/Bill');
|
2018-04-28 19:56:26 +05:30
|
|
|
frappe.desk.menu.addItem('Purchase Order', '#list/PurchaseOrder');
|
|
|
|
frappe.desk.menu.addItem('Purchase Receipt', '#list/PurchaseReceipt');
|
2018-03-28 17:42:13 +05:30
|
|
|
frappe.desk.menu.addItem('Journal Entry', '#list/JournalEntry');
|
2018-03-27 18:46:40 +05:30
|
|
|
frappe.desk.menu.addItem('Address', "#list/Address");
|
|
|
|
frappe.desk.menu.addItem('Contact', "#list/Contact");
|
2018-03-26 17:44:27 +05:30
|
|
|
frappe.desk.menu.addItem('Settings', () => frappe.desk.showFormModal('SystemSettings'));
|
2018-04-26 15:53:27 +05:30
|
|
|
|
|
|
|
// reports
|
2018-04-16 18:33:54 +05:30
|
|
|
frappe.desk.menu.addItem('General Ledger', '#report/general-ledger');
|
2018-04-24 13:28:57 +05:30
|
|
|
frappe.desk.menu.addItem('Profit And Loss', '#report/profit-and-loss');
|
|
|
|
frappe.desk.menu.addItem('Balance Sheet', '#report/balance-sheet');
|
2018-04-27 17:03:36 +05:30
|
|
|
frappe.desk.menu.addItem('Trial Balance', '#report/trial-balance');
|
2018-04-26 15:53:27 +05:30
|
|
|
frappe.desk.menu.addItem('Sales Register', '#report/sales-register');
|
|
|
|
frappe.desk.menu.addItem('Purchase Register', '#report/purchase-register');
|
2018-04-29 14:37:59 +05:30
|
|
|
frappe.desk.menu.addItem('Accounts Receivable', '#report/accounts-receivable');
|
|
|
|
frappe.desk.menu.addItem('Accounts Payable', '#report/accounts-payable');
|
2018-03-26 17:44:27 +05:30
|
|
|
|
2018-04-09 00:03:32 +05:30
|
|
|
frappe.router.default = '#tree/Account';
|
2018-03-26 17:44:27 +05:30
|
|
|
|
|
|
|
frappe.router.show(window.location.hash);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|