mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
- feat: Optimize tenancy software architecture.
This commit is contained in:
@@ -17,13 +17,12 @@ export default class ItemEntry extends TenantModel {
|
||||
return ['created_at', 'updated_at'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Relationship mapping.
|
||||
*/
|
||||
static get relationMappings() {
|
||||
return {
|
||||
static get virtualAttributes() {
|
||||
return ['amount'];
|
||||
}
|
||||
|
||||
};
|
||||
static amount() {
|
||||
return this.calcAmount(this);
|
||||
}
|
||||
|
||||
static calcAmount(itemEntry) {
|
||||
|
||||
Reference in New Issue
Block a user