mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
feat: add isPublished attribute to manual journal model.
This commit is contained in:
@@ -16,8 +16,21 @@ export default class ManualJournal extends TenantModel {
|
|||||||
return ['createdAt', 'updatedAt'];
|
return ['createdAt', 'updatedAt'];
|
||||||
}
|
}
|
||||||
|
|
||||||
static get resourceable() {
|
/**
|
||||||
return true;
|
* Virtual attributes.
|
||||||
|
*/
|
||||||
|
static get virtualAttributes() {
|
||||||
|
return [
|
||||||
|
'isPublished',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Detarmines whether the invoice is published.
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
get isPublished() {
|
||||||
|
return !!this.publishedAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user