From 02ff58e30f30a911f7ef9956850c04e9a7562112 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 26 Feb 2026 03:31:26 +0000 Subject: [PATCH] updating labels --- commit_message.txt | 1 + debug.log | 13 +++++++++++++ index.php | 38 +++++++++++++++++++++++++------------- post_debug.log | 7 +++++++ 4 files changed, 46 insertions(+), 13 deletions(-) create mode 100644 commit_message.txt diff --git a/commit_message.txt b/commit_message.txt new file mode 100644 index 0000000..ae313a4 --- /dev/null +++ b/commit_message.txt @@ -0,0 +1 @@ +Summary of label printing changes written. diff --git a/debug.log b/debug.log index f510394..9776fbe 100644 --- a/debug.log +++ b/debug.log @@ -13,3 +13,16 @@ 2026-02-25 15:28:54 - Items case hit 2026-02-26 02:55:12 - Items case hit 2026-02-26 02:56:47 - Items case hit +2026-02-26 03:00:52 - Items case hit +2026-02-26 03:01:01 - Items case hit +2026-02-26 03:01:48 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"Project-UUID","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true} +2026-02-26 03:05:30 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"Project-UUID","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true} +2026-02-26 03:08:42 - Items case hit +2026-02-26 03:09:08 - Items case hit +2026-02-26 03:09:24 - Requesting AI. UUID: [e1f9b5b3-fcef-4c8d-87d2-8630b1f72491] CFG: {"base_url":"https:\/\/flatlogic.com","responses_path":"\/projects\/38471\/ai-request","project_id":"38471","project_uuid":"e1f9b5b3-fcef-4c8d-87d2-8630b1f72491","project_header":"Project-UUID","default_model":"gpt-4o-mini","timeout":30,"verify_tls":true} +2026-02-26 03:09:34 - Items case hit +2026-02-26 03:10:28 - Items case hit +2026-02-26 03:23:07 - Items case hit +2026-02-26 03:25:23 - Items case hit +2026-02-26 03:29:29 - Items case hit +2026-02-26 03:30:39 - Items case hit diff --git a/index.php b/index.php index a6accf0..8ebe8aa 100644 --- a/index.php +++ b/index.php @@ -5665,7 +5665,7 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System'; - + item @@ -5702,7 +5702,7 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System';
- +
@@ -5739,7 +5739,7 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System';
@@ -6146,7 +6146,10 @@ $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Accounting System'; -
+
+
+
+
@@ -14438,12 +14441,14 @@ document.addEventListener('DOMContentLoaded', function() { checkedItems.forEach(cb => { const sku = cb.dataset.sku; - const name = cb.dataset.name; + const nameEn = cb.dataset.nameEn || ''; + const nameAr = cb.dataset.nameAr || ''; + const name = nameEn + (nameAr ? ' - ' + nameAr : ''); const id = cb.dataset.id; const tr = document.createElement('tr'); tr.innerHTML = ` - ${name} (${sku}) + ${name} (${sku}) @@ -14479,7 +14484,8 @@ document.addEventListener('DOMContentLoaded', function() { checkedItems.forEach(cb => { const sku = cb.dataset.sku; - const name = cb.dataset.name; + const nameEn = cb.dataset.nameEn || ''; + const nameAr = cb.dataset.nameAr || ''; const price = cb.dataset.price; const id = cb.dataset.id; @@ -14498,7 +14504,8 @@ document.addEventListener('DOMContentLoaded', function() { const uniqueId = Math.random().toString(36).substr(2, 9); const svgId = `bc-${sku}-${uniqueId}`; label.innerHTML = ` -
${name}
+
${nameEn}
+
${nameAr}
OMR ${price}
`; @@ -14534,12 +14541,14 @@ document.addEventListener('DOMContentLoaded', function() {