2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00
books/src/sidebarConfig.js

50 lines
1004 B
JavaScript
Raw Normal View History

import frappe from 'frappejs';
import { _ } from 'frappejs/utils';
2018-06-15 15:46:14 +00:00
export default {
async getTitle() {
const accountingSettings = await frappe.getSingle('AccountingSettings');
return accountingSettings.companyName;
2018-06-04 11:00:46 +00:00
},
groups: [
{
items: [
{
label: _('ToDo'), route: '#/list/ToDo'
},
{
label: _('Event'), route: '#/list/Event'
}
]
},
{
title: _('Masters'),
items: [
{
label: _('Item'), route: '#/list/Item'
},
{
label: _('Party'), route: '#/list/Party'
},
{
label: _('Invoice'), route: '#/list/Invoice'
},
{
label: _('Tax'), route: '#/list/Tax'
},
{
label: _('Account'), route: '#/list/Account'
}
]
},
{
title: _('Reports'),
items: [
{
label: _('General Ledger'), route: '#/report/general-ledger'
}
]
}
]
};