2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 17:34:04 +00:00
books/src/sidebarConfig.js
2018-07-17 17:01:25 +05:30

50 lines
1004 B
JavaScript

import frappe from 'frappejs';
import { _ } from 'frappejs/utils';
export default {
async getTitle() {
const accountingSettings = await frappe.getSingle('AccountingSettings');
return accountingSettings.companyName;
},
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'
}
]
}
]
};