2018-07-15 11:41:27 +00:00
|
|
|
import frappe from 'frappejs';
|
|
|
|
import { _ } from 'frappejs/utils';
|
2018-06-15 15:46:14 +00:00
|
|
|
|
2018-07-15 11:41:27 +00:00
|
|
|
export default {
|
|
|
|
async getTitle() {
|
|
|
|
const accountingSettings = await frappe.getSingle('AccountingSettings');
|
|
|
|
return accountingSettings.companyName;
|
2018-06-04 11:00:46 +00:00
|
|
|
},
|
2018-07-15 11:41:27 +00:00
|
|
|
groups: [
|
|
|
|
{
|
|
|
|
title: _('Masters'),
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: _('Item'), route: '#/list/Item'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: _('Party'), route: '#/list/Party'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: _('Tax'), route: '#/list/Tax'
|
|
|
|
},
|
|
|
|
{
|
2018-09-29 07:23:46 +00:00
|
|
|
label: _('Account'), route: '#/tree/Account'
|
2018-07-15 11:41:27 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
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'
|
|
|
|
// },
|
|
|
|
]
|
|
|
|
},
|
2018-07-15 11:41:27 +00:00
|
|
|
{
|
|
|
|
title: _('Reports'),
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: _('General Ledger'), route: '#/report/general-ledger'
|
2018-09-29 07:23:46 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: _('Sales Register'), route: '#/report/sales-register'
|
2018-07-15 11:41:27 +00:00
|
|
|
}
|
|
|
|
]
|
2018-10-10 10:32:56 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: _('Tools'),
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: _('Data Import'), route: '#/data-import'
|
|
|
|
}
|
|
|
|
]
|
2018-07-15 11:41:27 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|