From 660c0cb97b0ab902b0d7fc1aa722460d2b36f676 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Sun, 16 Nov 2025 21:42:03 +0300 Subject: [PATCH] feat(pos): Add kit icon indicator in cart - Added Bootstrap icon (bi-box-seam) for kit items in POS cart - Kits and showcase kits now display with blue icon for visual distinction - Regular products remain without icons for cleaner look - Maintains consistency with product list view styling --- myproject/pos/static/pos/js/terminal.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/myproject/pos/static/pos/js/terminal.js b/myproject/pos/static/pos/js/terminal.js index 1eccf4c..255ed0a 100644 --- a/myproject/pos/static/pos/js/terminal.js +++ b/myproject/pos/static/pos/js/terminal.js @@ -221,8 +221,15 @@ function renderCart() { // Левая часть: Название и цена единицы const namePrice = document.createElement('div'); namePrice.className = 'item-name-price'; + + // Иконка только для комплектов + let typeIcon = ''; + if (item.type === 'kit' || item.type === 'showcase_kit') { + typeIcon = ' '; + } + namePrice.innerHTML = ` -
${item.name}
+
${typeIcon}${item.name}
${formatMoney(item.price)} / шт
`;