Fix doctitle showing INVOICE in caps

buildForm() was overwriting the h1 with t("invoice") (uppercase translation)
after buildHeader() had already built the correct SVG icon + lowercase text.

https://claude.ai/code/session_01MkM7p8Us3L8YAfLKGA13NS
This commit is contained in:
Claude 2026-06-08 16:53:25 +00:00
parent 5184458c23
commit cf0994ae13
No known key found for this signature in database

View file

@ -684,8 +684,6 @@ function buildLangBar() {
// ── Build form ──────────────────────────────────────────────────────────────── // ── Build form ────────────────────────────────────────────────────────────────
function buildForm() { function buildForm() {
document.getElementById("inv-title").textContent = t("invoice");
const today = new Date(); const today = new Date();
const dateDef = `${today.getFullYear()}-${String(today.getMonth() + 1).padStart(2, "0")}-${String(today.getDate()).padStart(2, "0")}`; const dateDef = `${today.getFullYear()}-${String(today.getMonth() + 1).padStart(2, "0")}-${String(today.getDate()).padStart(2, "0")}`;
const curOpts = (cfg.currencies || []).map((c, i) => const curOpts = (cfg.currencies || []).map((c, i) =>