mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
180825243f
- Common FinancialStatementsView - Add BalanceSheet - Add Fiscal Year in Accounting Settings
32 lines
1.3 KiB
JavaScript
32 lines
1.3 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('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'));
|
|
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.router.default = '#tree/Account';
|
|
|
|
frappe.router.show(window.location.hash);
|
|
|
|
}
|
|
} |