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

65 lines
1.4 KiB
JavaScript

import frappe from 'frappejs';
import { _ } from 'frappejs/utils';
export default {
async getTitle() {
const accountingSettings = await frappe.getSingle('AccountingSettings');
return accountingSettings.companyName;
},
groups: [
{
title: _('Masters'),
items: [
{
label: _('Item'), route: '#/list/Item'
},
{
label: _('Party'), route: '#/list/Party'
},
{
label: _('Tax'), route: '#/list/Tax'
},
{
label: _('Account'), route: '#/tree/Account'
}
]
},
{
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'
}
]
},
{
title: _('Tools'),
items: [
{
label: _('Data Import'), route: '#/data-import'
}
]
}
]
};