feat: add isPublished attribute to manual journal model.

This commit is contained in:
a.bouhuolia
2021-01-04 13:13:33 +02:00
parent d99799c4d2
commit 999e74b405

View File

@@ -16,8 +16,21 @@ export default class ManualJournal extends TenantModel {
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;
}
/**