diff --git a/core/modules/modHandyBarcodeScanner.class.php b/core/modules/modHandyBarcodeScanner.class.php index 1683b5e..1a2e675 100755 --- a/core/modules/modHandyBarcodeScanner.class.php +++ b/core/modules/modHandyBarcodeScanner.class.php @@ -76,7 +76,7 @@ class modHandyBarcodeScanner extends DolibarrModules $this->editor_squarred_logo = ''; // Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@handybarcodescanner' // Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z' - $this->version = '5.3'; + $this->version = '5.4'; // Url to the file with your last numberversion of this module //$this->url_last_version = 'http://www.example.com/versionmodule.txt'; diff --git a/js/scanner.js b/js/scanner.js index e51bcd5..1fb3c1c 100755 --- a/js/scanner.js +++ b/js/scanner.js @@ -1169,10 +1169,16 @@ }); } + // Cache für aktuelle Bestellzeilen (Modal) + let currentModalLines = []; + function renderOrderLinesInModal(lines, order, orderId) { const content = document.getElementById('orders-modal-detail-content'); if (!content) return; + // Lines cachen für Click-Handler + currentModalLines = lines; + if (lines.length === 0) { content.innerHTML = '