Actualiser assets/js/app.js
CI / PHP Syntax Check (push) Has been cancelled
CI / JavaScript Lint (push) Has been cancelled
CI / Docker Build Test (push) Has been cancelled
CI / Validate Translation Files (push) Has been cancelled
CI / Auto-merge develop → main (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / PHP Syntax Check (push) Has been cancelled
CI / JavaScript Lint (push) Has been cancelled
CI / Docker Build Test (push) Has been cancelled
CI / Validate Translation Files (push) Has been cancelled
CI / Auto-merge develop → main (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
This commit is contained in:
+4
-1
@@ -6676,6 +6676,9 @@ function renderInventoryItem(item) {
|
||||
const catIcon = CATEGORY_ICONS[catKey] || '📦';
|
||||
const catLabel = t('categories.' + catKey) || catKey;
|
||||
const catBadge = `<span class="inv-badge badge-category" data-cat="${catKey}" data-itemname="${escapeHtml(item.name)}">${catIcon} ${catLabel}</span>`;
|
||||
const subBadge = (item.subcategory && SUBCATEGORY_LABELS[item.subcategory])
|
||||
? `<span class="inv-badge badge-subcategory">${SUBCATEGORY_LABELS[item.subcategory]}</span>`
|
||||
: '';
|
||||
const subBadge = (catKey === 'bevande' && item.subcategory && SUBCATEGORY_LABELS[item.subcategory])
|
||||
? `<span class="inv-badge badge-subcategory">${SUBCATEGORY_LABELS[item.subcategory]}</span>`
|
||||
: '';
|
||||
@@ -9074,7 +9077,7 @@ function editProductFromAction() {
|
||||
document.getElementById('pf-category').closest('.form-group').style.display = 'block';
|
||||
}
|
||||
document.getElementById('pf-category').disabled = false;
|
||||
|
||||
document.getElementById('pf-subcategory').value = currentProduct.subcategory || '';
|
||||
// Set subcategory (boisson uniquement)
|
||||
const editSubGroup = document.getElementById('pf-subcategory-group');
|
||||
if (editSubGroup) editSubGroup.style.display = (cat === 'bevande') ? 'block' : 'none';
|
||||
|
||||
Reference in New Issue
Block a user