fix: edit custom view details.

This commit is contained in:
Ahmed Bouhuolia
2020-10-17 18:12:15 +02:00
parent ebcd1d12f3
commit 078098c593
12 changed files with 97 additions and 47 deletions

View File

@@ -26,7 +26,7 @@ export default class Account extends TenantModel {
}
/**
*
* Allows to mark model as resourceable to viewable and filterable.
*/
static get resourceable() {
return true;

View File

@@ -10,6 +10,20 @@ export default class AccountType extends TenantModel {
return 'account_types';
}
/**
* Virtaul attributes.
*/
static get virtualAttributes() {
return ['label'];
}
/**
* Translatable lable.
*/
label() {
return AccountType.labels[this.key] || '';
}
/**
* Relationship mapping.
*/

View File

@@ -25,7 +25,16 @@ export default class Expense extends TenantModel {
return ['createdAt', 'updatedAt'];
}
/**
* Allows to mark model as resourceable to viewable and filterable.
*/
static get resourceable() {
return true;
}
/**
*
*/
static get media () {
return true;
}

View File

@@ -19,6 +19,13 @@ export default class Item extends TenantModel {
return ['createdAt', 'updatedAt'];
}
/**
* Allows to mark model as resourceable to viewable and filterable.
*/
static get resourceable() {
return true;
}
/**
* Model modifiers.
*/

View File

@@ -17,6 +17,13 @@ export default class ManualJournal extends TenantModel {
return ['createdAt', 'updatedAt'];
}
/**
*
*/
static get resourceable() {
return true;
}
/**
* Relationship mapping.
*/