mirror of
https://github.com/kbenestad/invoice.git
synced 2026-06-18 08:04:32 +00:00
Widen quantity input to fit NNN.XX format
Increases col-qty from 72px to 96px and adds placeholder "0.00" with step="0.01" to communicate the three-digit, two-decimal format. https://claude.ai/code/session_0127ywsQA7qWcX3tGX4itqN5
This commit is contained in:
parent
30fe67fd6e
commit
bacce29312
1 changed files with 3 additions and 3 deletions
|
|
@ -148,7 +148,7 @@
|
||||||
.line-tbl .fx td { padding: 4px 10px 10px; border-bottom: 1px solid var(--border-light); background: #f9fafb; }
|
.line-tbl .fx td { padding: 4px 10px 10px; border-bottom: 1px solid var(--border-light); background: #f9fafb; }
|
||||||
.line-tbl .al td { padding: 10px; }
|
.line-tbl .al td { padding: 10px; }
|
||||||
|
|
||||||
.col-qty { width: 72px; } .col-uom { width: 100px; }
|
.col-qty { width: 96px; } .col-uom { width: 100px; }
|
||||||
.col-price { width: 110px; } .col-tot { width: 110px; } .col-act { width: 36px; }
|
.col-price { width: 110px; } .col-tot { width: 110px; } .col-act { width: 36px; }
|
||||||
|
|
||||||
.line-total-val { font-size: 13px; font-weight: 600; text-align: right; padding-top: 6px; }
|
.line-total-val { font-size: 13px; font-weight: 600; text-align: right; padding-top: 6px; }
|
||||||
|
|
@ -772,8 +772,8 @@ function addLine() {
|
||||||
const tr = document.createElement("tr");
|
const tr = document.createElement("tr");
|
||||||
tr.className = "lr"; tr.id = `lr-${i}`;
|
tr.className = "lr"; tr.id = `lr-${i}`;
|
||||||
tr.innerHTML = `
|
tr.innerHTML = `
|
||||||
<td class="col-qty"><input type="number" id="qty-${i}" value="" min="0" step="any"
|
<td class="col-qty"><input type="number" id="qty-${i}" value="" min="0" step="0.01"
|
||||||
oninput="calcLine(${i});saveLines()" disabled></td>
|
placeholder="0.00" oninput="calcLine(${i});saveLines()" disabled></td>
|
||||||
<td class="col-uom"><select id="uom-${i}" onchange="calcLine(${i});saveLines()" disabled>${uomOpts("")}</select></td>
|
<td class="col-uom"><select id="uom-${i}" onchange="calcLine(${i});saveLines()" disabled>${uomOpts("")}</select></td>
|
||||||
<td class="col-desc">
|
<td class="col-desc">
|
||||||
<select id="dsel-${i}" onchange="pickProduct(${i})">${prodOpts("")}</select>
|
<select id="dsel-${i}" onchange="pickProduct(${i})">${prodOpts("")}</select>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue