diff --git a/db/changes/231205/00-printQueueArgs.sql b/db/changes/231205/00-printQueueArgs.sql new file mode 100644 index 000000000..972031325 --- /dev/null +++ b/db/changes/231205/00-printQueueArgs.sql @@ -0,0 +1 @@ +ALTER TABLE `vn`.`printQueueArgs` MODIFY COLUMN value varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NULL; diff --git a/modules/ticket/back/methods/ticket/expeditionPalletLabel.js b/modules/ticket/back/methods/ticket/expeditionPalletLabel.js index 9830364d6..0790ff7d4 100644 --- a/modules/ticket/back/methods/ticket/expeditionPalletLabel.js +++ b/modules/ticket/back/methods/ticket/expeditionPalletLabel.js @@ -11,8 +11,7 @@ module.exports = Self => { http: {source: 'path'} }, { arg: 'userFk', - type: 'number', - required: true, + type: 'any', description: 'The user id' } ], diff --git a/print/templates/reports/expedition-pallet-label/expedition-pallet-label.html b/print/templates/reports/expedition-pallet-label/expedition-pallet-label.html index e4360c79d..07dffd042 100644 --- a/print/templates/reports/expedition-pallet-label/expedition-pallet-label.html +++ b/print/templates/reports/expedition-pallet-label/expedition-pallet-label.html @@ -30,7 +30,7 @@ @@ -38,4 +38,4 @@ - \ No newline at end of file + diff --git a/print/templates/reports/expedition-pallet-label/expedition-pallet-label.js b/print/templates/reports/expedition-pallet-label/expedition-pallet-label.js index d2fa59612..cd5dfddb2 100644 --- a/print/templates/reports/expedition-pallet-label/expedition-pallet-label.js +++ b/print/templates/reports/expedition-pallet-label/expedition-pallet-label.js @@ -14,13 +14,12 @@ module.exports = { }, userFk: { type: Number, - required: true, description: 'The user id' } }, async serverPrefetch() { this.labelsData = await this.rawSqlFromDef('labelData', this.id); - this.username = await this.findOneFromDef('username', this.userFk); + if (this.userFk) this.username = await this.findOneFromDef('username', this.userFk); this.labelData = this.labelsData[0]; this.checkMainEntity(this.labelData);