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
This commit is contained in:
@@ -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 = '<i class="bi bi-box-seam text-info" title="Комплект"></i> ';
|
||||
}
|
||||
|
||||
namePrice.innerHTML = `
|
||||
<div class="fw-semibold small">${item.name}</div>
|
||||
<div class="fw-semibold small">${typeIcon}${item.name}</div>
|
||||
<div class="text-muted" style="font-size: 0.75rem;">${formatMoney(item.price)} / шт</div>
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user