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';
});
});