mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
fix: edit custom view details.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -17,6 +17,13 @@ export default class ManualJournal extends TenantModel {
|
||||
return ['createdAt', 'updatedAt'];
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
static get resourceable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Relationship mapping.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user