From 9c91a9918923d4b15f0023dc2380ecd4de009a78 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Sat, 24 Jan 2026 01:54:58 +0300 Subject: [PATCH] refactor(pos): simplify showcase kit default name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace datetime-based naming with simple "Витринный букет XXX" format, where XXX is a random 3-digit number (100-999). Date is now handled by the separate showcase_created_at field. Co-Authored-By: Claude Opus 4.5 --- myproject/pos/static/pos/js/terminal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/myproject/pos/static/pos/js/terminal.js b/myproject/pos/static/pos/js/terminal.js index bc53a53..2512642 100644 --- a/myproject/pos/static/pos/js/terminal.js +++ b/myproject/pos/static/pos/js/terminal.js @@ -1821,8 +1821,8 @@ async function openCreateTempKitModal() { }); // Генерируем название по умолчанию - const now = new Date(); - const defaultName = `Витрина — ${now.toLocaleDateString('ru-RU')} ${now.toLocaleTimeString('ru-RU', {hour: '2-digit', minute: '2-digit'})}`; + const randomSuffix = Math.floor(Math.random() * 900) + 100; + const defaultName = `Витринный букет ${randomSuffix}`; document.getElementById('tempKitName').value = defaultName; // Загружаем список витрин