Добавлен автоматический пересчёт суммы товаров после загрузки из черновика

This commit is contained in:
2025-12-09 00:14:07 +03:00
parent f7ee3e753c
commit e021c68beb

View File

@@ -2236,6 +2236,11 @@ if (!document.getElementById('notification-styles')) {
}
console.log(`[Order Items] 🎉 Товар успешно загружен: ${optionText}`);
// Пересчитываем сумму товаров
if (typeof updateOrderItemsTotal === 'function') {
updateOrderItemsTotal();
}
} else {
console.warn(`[Order Items] ⚠️ API вернул пустой массив results`);
}