From 125b71673d4e57d1bc0a5c8c8dea94d4ca535baf Mon Sep 17 00:00:00 2001 From: Scheianu Ionut Date: Fri, 19 Sep 2025 20:29:13 +0300 Subject: [PATCH] Updated to list bottom barcode --- py_app/app/templates/print_module.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/py_app/app/templates/print_module.html b/py_app/app/templates/print_module.html index 6628dd8..2a93fad 100644 --- a/py_app/app/templates/print_module.html +++ b/py_app/app/templates/print_module.html @@ -104,6 +104,17 @@ + + +
+ +
+
+ +
+ +
+
@@ -213,6 +224,9 @@ document.getElementById('check-db-btn').addEventListener('click', function() { const cantitate = data[0].cantitate || ''; const prodOrder = comandaProductie && cantitate ? `${comandaProductie}-${cantitate}` : 'N/A'; document.getElementById('prod-order-value').textContent = prodOrder; + + // Update barcode with the same prod order data + document.getElementById('barcode-text').textContent = prodOrder; } else { document.getElementById('customer-name-row').textContent = 'No data available'; document.getElementById('quantity-ordered-value').textContent = '0'; @@ -222,6 +236,7 @@ document.getElementById('check-db-btn').addEventListener('click', function() { document.getElementById('description-value').textContent = 'N/A'; document.getElementById('article-code-value').textContent = 'N/A'; document.getElementById('prod-order-value').textContent = 'N/A'; + document.getElementById('barcode-text').textContent = 'N/A'; } }) .catch(error => { @@ -234,6 +249,7 @@ document.getElementById('check-db-btn').addEventListener('click', function() { document.getElementById('description-value').textContent = 'Error'; document.getElementById('article-code-value').textContent = 'Error'; document.getElementById('prod-order-value').textContent = 'Error'; + document.getElementById('barcode-text').textContent = 'Error'; }); });