fix: record expense, item and item category date session.

fix: delete bulk accounts.
fix: activate/inactive bulk accounts.
This commit is contained in:
Ahmed Bouhuolia
2020-09-28 23:06:29 +02:00
parent ad51d12572
commit 4732fa1d21
5 changed files with 24 additions and 28 deletions

View File

@@ -20,7 +20,7 @@ export default class Expense extends TenantModel {
/**
* Model timestamps.
*/
static get timestamps() {
get timestamps() {
return ['createdAt', 'updatedAt'];
}

View File

@@ -15,7 +15,7 @@ export default class Item extends TenantModel {
/**
* Model timestamps.
*/
static get timestamps() {
get timestamps() {
return ['createdAt', 'updatedAt'];
}
@@ -23,8 +23,6 @@ export default class Item extends TenantModel {
* Model modifiers.
*/
static get modifiers() {
const TABLE_NAME = Item.tableName;
return {
sortBy(query, columnSort, sortDirection) {
query.orderBy(columnSort, sortDirection);

View File

@@ -10,6 +10,13 @@ export default class ItemCategory extends TenantModel {
return 'items_categories';
}
/**
* Timestamps columns.
*/
get timestamps() {
return ['createdAt', 'updatedAt'];
}
/**
* Relationship mapping.
*/