mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
17e5187c51
- Models - Bill - Quotation (extended from Invoice) - Journal Entry - Reports - Sales Register - Purchase Register
37 lines
1.6 KiB
JavaScript
37 lines
1.6 KiB
JavaScript
const frappe = require('frappejs');
|
|
const { registerReportRoutes } = require('../reports');
|
|
|
|
module.exports = {
|
|
start() {
|
|
// require modules
|
|
frappe.registerModels(require('../models'), 'client');
|
|
|
|
frappe.registerView('List', 'Customer', require('../models/doctype/Party/CustomerList.js'));
|
|
|
|
registerReportRoutes();
|
|
|
|
frappe.desk.menu.addItem('ToDo', '#list/ToDo');
|
|
frappe.desk.menu.addItem('Chart of Accounts', '#tree/Account');
|
|
frappe.desk.menu.addItem('Items', '#list/Item');
|
|
frappe.desk.menu.addItem('Customers', '#list/Customer');
|
|
frappe.desk.menu.addItem('Quotation', '#list/Quotation');
|
|
frappe.desk.menu.addItem('Invoice', '#list/Invoice');
|
|
frappe.desk.menu.addItem('Bill', '#list/Bill');
|
|
frappe.desk.menu.addItem('Journal Entry', '#list/JournalEntry');
|
|
frappe.desk.menu.addItem('Address', "#list/Address");
|
|
frappe.desk.menu.addItem('Contact', "#list/Contact");
|
|
frappe.desk.menu.addItem('Settings', () => frappe.desk.showFormModal('SystemSettings'));
|
|
|
|
// reports
|
|
frappe.desk.menu.addItem('General Ledger', '#report/general-ledger');
|
|
frappe.desk.menu.addItem('Profit And Loss', '#report/profit-and-loss');
|
|
frappe.desk.menu.addItem('Balance Sheet', '#report/balance-sheet');
|
|
frappe.desk.menu.addItem('Sales Register', '#report/sales-register');
|
|
frappe.desk.menu.addItem('Purchase Register', '#report/purchase-register');
|
|
|
|
frappe.router.default = '#tree/Account';
|
|
|
|
frappe.router.show(window.location.hash);
|
|
|
|
}
|
|
} |