Updated prop types

This commit is contained in:
Joan Sanchez 2022-01-17 12:44:43 +01:00
parent 7d16d7aaf2
commit a8f56dce58
29 changed files with 35 additions and 12 deletions

View File

@ -21,6 +21,7 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
},
from: {

View File

@ -10,6 +10,7 @@ module.exports = {
},
props: {
claimId: {
type: [Number, String],
required: true
}
}

View File

@ -16,6 +16,7 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
},
from: {

View File

@ -18,6 +18,7 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
}
}

View File

@ -10,6 +10,7 @@ module.exports = {
},
props: {
ticketId: {
type: [Number, String],
required: true
}
}

View File

@ -10,7 +10,7 @@ module.exports = {
},
props: {
ticketId: {
type: String,
type: [Number, String],
required: true
}
}

View File

@ -10,7 +10,7 @@ module.exports = {
},
props: {
routeId: {
type: String,
type: [Number, String],
required: true
}
}

View File

@ -18,7 +18,7 @@ module.exports = {
},
props: {
invoiceId: {
type: Number,
type: [Number, String],
required: true
}
}

View File

@ -30,9 +30,11 @@ module.exports = {
required: true
},
recipientId: {
type: [Number, String],
required: true
},
companyId: {
type: [Number, String],
required: true
}
}

View File

@ -1,5 +1,4 @@
const Component = require(`${appPath}/core/component`);
const db = require(`${appPath}/core/database`);
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachment = new Component('attachment');
@ -28,9 +27,11 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
},
companyId: {
type: [Number, String],
required: true
},
}

View File

@ -26,6 +26,7 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
}
}

View File

@ -24,6 +24,7 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
}
}

View File

@ -16,9 +16,11 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
},
companyId: {
type: [Number, String],
required: true
}
}

View File

@ -21,6 +21,7 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
},
from: {

View File

@ -25,6 +25,7 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
},
from: {

View File

@ -32,6 +32,7 @@ module.exports = {
},
props: {
claimId: {
type: [Number, String],
required: true
}
}

View File

@ -69,6 +69,7 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
},
from: {

View File

@ -10,7 +10,6 @@ module.exports = {
throw new Error('Something went wrong');
this.client = await this.findOneFromDef('client', [this.ticket.clientFk]);
},
computed: {
issued: function() {
@ -23,6 +22,7 @@ module.exports = {
},
props: {
ticketId: {
type: [Number, String],
required: true
}
}

View File

@ -117,7 +117,7 @@ module.exports = {
},
props: {
ticketId: {
type: String,
type: [Number, String],
required: true
}
}

View File

@ -39,7 +39,7 @@ module.exports = {
},
props: {
routeId: {
type: Number,
type: [Number, String],
required: true
}
}

View File

@ -40,7 +40,7 @@ module.exports = {
},
props: {
entryId: {
type: String,
type: [Number, String],
required: true
}
}

View File

@ -28,7 +28,7 @@ module.exports = {
},
props: {
invoiceId: {
type: Number,
type: [Number, String],
required: true
}
}

View File

@ -32,7 +32,7 @@ module.exports = {
},
props: {
invoiceId: {
type: Number,
type: [Number, String],
required: true
}
}

View File

@ -115,7 +115,7 @@ module.exports = {
},
props: {
invoiceId: {
type: Number,
type: [Number, String],
required: true
}
}

View File

@ -63,9 +63,11 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
},
companyId: {
type: [Number, String],
required: true
}
}

View File

@ -25,6 +25,7 @@ module.exports = {
},
props: {
receiptId: {
type: [Number, String],
required: true
}
}

View File

@ -40,9 +40,11 @@ const rptSepaCore = {
},
props: {
recipientId: {
type: [Number, String],
required: true
},
companyId: {
type: [Number, String],
required: true
}
}

View File

@ -49,6 +49,7 @@ module.exports = {
},
props: {
recipientId: {
type: [Number, String],
required: true
},
from: {

View File

@ -13,6 +13,7 @@ module.exports = {
},
props: {
routeId: {
type: [Number, String],
required: true
}
}