From 0c22c1b0de3e202816d2014b445aa21232c24bae Mon Sep 17 00:00:00 2001 From: guillermo Date: Wed, 8 Mar 2023 17:30:28 +0100 Subject: [PATCH] refs #5368 Fix expedition-pallet-label --- .../reports/expedition-pallet-label/expedition-pallet-label.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 88645309d..d2fa59612 100644 --- a/print/templates/reports/expedition-pallet-label/expedition-pallet-label.js +++ b/print/templates/reports/expedition-pallet-label/expedition-pallet-label.js @@ -22,6 +22,7 @@ module.exports = { this.labelsData = await this.rawSqlFromDef('labelData', this.id); this.username = await this.findOneFromDef('username', this.userFk); this.labelData = this.labelsData[0]; + this.checkMainEntity(this.labelData); let QRdata = JSON.stringify({ company: 'vnl', @@ -32,7 +33,6 @@ module.exports = { }); this.QR = await this.getQR(QRdata); - this.checkMainEntity(this.labelsData); }, methods: { getQR(id) {