Merge from dev to master #959

Merged
joan merged 3 commits from test into master 2022-05-02 10:44:25 +00:00
1 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,10 @@ const fs = require('fs-extra');
module.exports = { module.exports = {
name: 'delivery-note', name: 'delivery-note',
created() {
if (!this.type)
this.type = 'deliveryNote';
},
async serverPrefetch() { async serverPrefetch() {
this.client = await this.fetchClient(this.ticketId); this.client = await this.fetchClient(this.ticketId);
this.ticket = await this.fetchTicket(this.ticketId); this.ticket = await this.fetchTicket(this.ticketId);
@ -129,7 +133,7 @@ module.exports = {
}, },
type: { type: {
type: String, type: String,
required: true required: false
} }
} }
}; };