mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
refactoring: custom views service.
fix: constraints of delete item from storage. fix: constraints of delete item category from storage. fix: localize database seeds files. fix: view meta data in accounts list response.
This commit is contained in:
@@ -50,4 +50,41 @@ export default class ManualJournal extends TenantModel {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Model defined fields.
|
||||
*/
|
||||
static get fields() {
|
||||
return {
|
||||
date: {
|
||||
column: 'date',
|
||||
},
|
||||
journal_number: {
|
||||
column: 'journal_number',
|
||||
},
|
||||
reference: {
|
||||
column: 'reference',
|
||||
},
|
||||
status: {
|
||||
column: 'status',
|
||||
},
|
||||
amount: {
|
||||
column: 'amount',
|
||||
},
|
||||
description: {
|
||||
column: 'description',
|
||||
},
|
||||
user: {
|
||||
column: 'user_id',
|
||||
relation: 'users.id',
|
||||
relationColumn: 'users.id',
|
||||
},
|
||||
journal_type: {
|
||||
column: 'journal_type',
|
||||
},
|
||||
created_at: {
|
||||
column: 'created_at',
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user