From 3f074007058b3b83f45008b4ad50819271133896 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 2 May 2022 12:28:17 +0200 Subject: [PATCH] fix(delivery-note): type not required --- print/templates/reports/delivery-note/delivery-note.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/print/templates/reports/delivery-note/delivery-note.js b/print/templates/reports/delivery-note/delivery-note.js index adda6e756..f9dba0578 100755 --- a/print/templates/reports/delivery-note/delivery-note.js +++ b/print/templates/reports/delivery-note/delivery-note.js @@ -7,6 +7,10 @@ const fs = require('fs-extra'); module.exports = { name: 'delivery-note', + created() { + if (!this.type) + this.type = 'deliveryNote'; + }, async serverPrefetch() { this.client = await this.fetchClient(this.ticketId); this.ticket = await this.fetchTicket(this.ticketId); @@ -129,7 +133,7 @@ module.exports = { }, type: { type: String, - required: true + required: false } } };