mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
WIP Advanced filter.
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user