WIP Advanced filter.

This commit is contained in:
Ahmed Bouhuolia
2020-03-23 15:11:07 +02:00
parent 58c67ee36e
commit 52f94c30f5
6 changed files with 414 additions and 47 deletions

View File

@@ -1,6 +1,36 @@
/* eslint-disable quote-props */
export default {
"expense_account": 'expense_account_id',
"payment_account": 'payment_account_id',
"account_type": "account_type_id"
}
// Expenses.
'expenses': {
'expense_account': {
column: ' ',
relation: 'accounts.name',
},
'payment_account': {
column: 'payment_account_id',
relation: 'accounts.id',
},
'account_type': {
column: 'account_type_id',
relation: 'account_types.id',
},
},
// Accounts
'accounts': {
'name': {
column: 'name',
},
'type': {
column: 'account_type_id',
relation: 'account_types.id',
},
'description': {
column: 'description',
},
'code': {
column: 'code',
},
},
};