diff --git a/print/templates/reports/collection-label/assets/css/style.css b/print/templates/reports/collection-label/assets/css/style.css
index fe1975445..ad80af5bf 100644
--- a/print/templates/reports/collection-label/assets/css/style.css
+++ b/print/templates/reports/collection-label/assets/css/style.css
@@ -1,6 +1,6 @@
html {
font-family: "Roboto";
- margin-top: -7px;
+ margin-top: -6px;
}
* {
box-sizing: border-box;
@@ -18,6 +18,7 @@ html {
}
#nickname {
font-size: 22px;
+ max-width: 50px;
}
#agencyDescripton {
font-size: 32px;
diff --git a/print/templates/reports/collection-label/collection-label.html b/print/templates/reports/collection-label/collection-label.html
index eeb82ac4a..8d7cc3655 100644
--- a/print/templates/reports/collection-label/collection-label.html
+++ b/print/templates/reports/collection-label/collection-label.html
@@ -1,35 +1,32 @@
-
-
-
-
-
-
-
- {{labelData.levelV}} |
- {{labelData.ticketFk}} ⬸ {{labelData.clientFk}} |
- {{labelData.shipped}} |
-
-
- |
- {{labelData.workerCode}} |
-
-
- {{labelData.labelCount}} |
-
-
- {{labelData.size}} |
-
-
- {{labelData.agencyDescription}} |
- {{labelData.lineCount}} |
-
-
- {{labelData.nickName}} |
- {{labelData.agencyHour}} |
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{labelData.levelV}} |
+ {{labelData.ticketFk}} / {{labelData.clientFk}} |
+ {{labelData.shipped}} |
+
+
+ |
+ {{labelData.workerCode}} |
+
+
+ {{labelData.labelCount}} |
+
+
+ {{labelData.value}} |
+
+
+ {{labelData.agencyDescription}} |
+ {{labelData.lineCount}} |
+
+
+ {{labelData.nickName}} |
+ {{labelData.agencyHour}} |
+
+
+
+
+
\ No newline at end of file
diff --git a/print/templates/reports/collection-label/collection-label.js b/print/templates/reports/collection-label/collection-label.js
index 7bc25ad79..d2d5f6417 100644
--- a/print/templates/reports/collection-label/collection-label.js
+++ b/print/templates/reports/collection-label/collection-label.js
@@ -40,7 +40,7 @@ module.exports = {
format: 'code128',
displayValue: false,
width: 3.8,
- height: 110,
+ height: 115,
});
return xmlSerializer.serializeToString(svgNode);
},
diff --git a/print/templates/reports/collection-label/options.json b/print/templates/reports/collection-label/options.json
index 175b3c1db..f6e68a5ea 100644
--- a/print/templates/reports/collection-label/options.json
+++ b/print/templates/reports/collection-label/options.json
@@ -2,8 +2,8 @@
"width": "10.4cm",
"height": "4.8cm",
"margin": {
- "top": "0cm",
- "right": "0.5cm",
+ "top": "0.2cm",
+ "right": "0.6cm",
"bottom": "0cm",
"left": "0cm"
},
diff --git a/print/templates/reports/collection-label/sql/labelsData.sql b/print/templates/reports/collection-label/sql/labelsData.sql
index 6f5b47a54..1a2977f74 100644
--- a/print/templates/reports/collection-label/sql/labelsData.sql
+++ b/print/templates/reports/collection-label/sql/labelsData.sql
@@ -1,18 +1,18 @@
SELECT c.itemPackingTypeFk,
CONCAT(tc.collectionFk, ' ', LEFT(cc.code, 4)) color,
- CONCAT(tc.collectionFk, ' ', SUBSTRING('ABCDEFGH',tc.wagon, 1), '-', tc.`level`) levelV,
+ CONCAT(tc.collectionFk, ' ', SUBSTRING('ABCDEFGH', tc.wagon, 1), '-', tc.`level`) levelV,
tc.ticketFk,
LEFT(COALESCE(et.description, zo.name, am.name),12) agencyDescription,
am.name,
t.clientFk,
CONCAT(CAST(SUM(sv.volume) AS DECIMAL(5, 2)), 'm³') m3 ,
- CAST(IF(ic.code = 'plant', CONCAT(MAX(i.`size`),' cm'), COUNT(*)) AS CHAR) size,
+ IF(ic.code = 'plant', CONCAT(MAX(i.`size`),' cm'), CONCAT(CAST(SUM(sv.volume) AS DECIMAL(5, 2)), 'm³')) `value`,
w.code workerCode,
tt.labelCount,
IF(HOUR(t.shipped), TIME_FORMAT(t.shipped, '%H:%i'), TIME_FORMAT(zo.`hour`, '%H:%i')) agencyHour,
DATE_FORMAT(t.shipped, '%d/%m/%y') shipped,
COUNT(*) lineCount,
- t.nickName
+ LEFT(t.nickName, 29) nickName
FROM vn.ticket t
JOIN vn.ticketCollection tc ON tc.ticketFk = t.id
JOIN vn.collection c ON c.id = tc.collectionFk