diff --git a/modules/invoiceIn/back/methods/invoice-in/invoiceInPdf.js b/modules/invoiceIn/back/methods/invoice-in/invoiceInPdf.js index f1d17dce7..e7962c93f 100644 --- a/modules/invoiceIn/back/methods/invoice-in/invoiceInPdf.js +++ b/modules/invoiceIn/back/methods/invoice-in/invoiceInPdf.js @@ -2,14 +2,14 @@ const {Report} = require('vn-print'); module.exports = Self => { Self.remoteMethodCtx('invoiceInPdf', { - description: 'Returns the delivery note pdf', + description: 'Returns the invoiceIn pdf', accessType: 'READ', accepts: [ { arg: 'id', type: 'number', required: true, - description: 'The ticket id', + description: 'The invoiceIn id', http: {source: 'path'} } ], diff --git a/print/templates/reports/invoiceIn/invoiceIn.js b/print/templates/reports/invoiceIn/invoiceIn.js index cfad062ed..526c40fc6 100755 --- a/print/templates/reports/invoiceIn/invoiceIn.js +++ b/print/templates/reports/invoiceIn/invoiceIn.js @@ -87,7 +87,7 @@ module.exports = { }, props: { id: { - type: [Number, String], + type: Number, description: 'The invoice id' } }