fix: Simplify date generation function in ticket printing

Refactor date generation to use direct string construction instead of
intermediate variables to prevent undefined values in ticket dates.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Marco Gallegos
2025-09-05 10:17:27 -06:00
parent b2963e7f9d
commit 006e74c42a
3 changed files with 20 additions and 27 deletions

2
app.js
View File

@@ -1,5 +1,5 @@
import { load, save, remove, KEY_DATA, KEY_SETTINGS, KEY_CLIENTS } from './storage.js';
import { renderTicketAndPrint } from './print.js?v=1757039367';
import { renderTicketAndPrint } from './print.js?v=1757039801';
// --- UTILITIES ---
function escapeHTML(str) {