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

65 lines
1.4 KiB
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: [
{
title: _('Masters'),
items: [
{
label: _('Item'), route: '#/list/Item'
},
{
label: _('Party'), route: '#/list/Party'
},
{
label: _('Tax'), route: '#/list/Tax'
},
{
label: _('Account'), route: '#/tree/Account'
}
]
},
2018-09-26 14:23:53 +00:00
{
title: _('Transactions'),
items: [
{
label: _('Invoice'), route: '#/list/Invoice'
},
{
label: _('Journal Entry'), route: '#/list/JournalEntry'
}
// {
// label: _('Payment'), route: '#/list/Payment'
// },
// {
// label: _('AccountingLedgerEntry'), route: '#/list/AccountingLedgerEntry'
// },
]
},
{
title: _('Reports'),
items: [
{
label: _('General Ledger'), route: '#/report/general-ledger'
},
{
label: _('Sales Register'), route: '#/report/sales-register'
}
]
2018-10-10 10:32:56 +00:00
},
{
title: _('Tools'),
items: [
{
label: _('Data Import'), route: '#/data-import'
}
]
}
]
};