refactor(pos): simplify showcase kit default name
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 <noreply@anthropic.com>
This commit is contained in:
@@ -1821,8 +1821,8 @@ async function openCreateTempKitModal() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Генерируем название по умолчанию
|
// Генерируем название по умолчанию
|
||||||
const now = new Date();
|
const randomSuffix = Math.floor(Math.random() * 900) + 100;
|
||||||
const defaultName = `Витрина — ${now.toLocaleDateString('ru-RU')} ${now.toLocaleTimeString('ru-RU', {hour: '2-digit', minute: '2-digit'})}`;
|
const defaultName = `Витринный букет ${randomSuffix}`;
|
||||||
document.getElementById('tempKitName').value = defaultName;
|
document.getElementById('tempKitName').value = defaultName;
|
||||||
|
|
||||||
// Загружаем список витрин
|
// Загружаем список витрин
|
||||||
|
|||||||
Reference in New Issue
Block a user