diff --git a/api/index.php b/api/index.php index f1fcf0d..51bd69d 100644 --- a/api/index.php +++ b/api/index.php @@ -2013,6 +2013,7 @@ PROMPT; $ing['default_quantity'] = (float)($bestMatch['default_quantity'] ?? 0); $ing['package_unit'] = $bestMatch['package_unit'] ?? ''; $ing['available_qty'] = $bestMatch['quantity'] . ' ' . $bestMatch['unit']; + $ing['vacuum_sealed'] = !empty($bestMatch['vacuum_sealed']) ? 1 : 0; if (!empty($bestMatch['brand'])) { $ing['brand'] = $bestMatch['brand']; } diff --git a/assets/js/app.js b/assets/js/app.js index ebab010..32c63ad 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -4785,7 +4785,12 @@ function showMoveAfterUseModal(product, fromLoc, remaining, openedId) { const locButtons = otherLocs.map(([k, v]) => `` ).join(''); - + const wasVacuum = !!product.vacuum_sealed; + const vacuumRow = wasVacuum ? ` + ` : ''; document.getElementById('modal-content').innerHTML = `