mirror of
https://github.com/kbenestad/reimburse.git
synced 2026-06-18 16:04:31 +00:00
Replace three blue separators before grand total with one double-weight line
The last item divider plus two double-rule lines produced three blue lines. Removed the item divider and the double-rule pair; replaced with a single line at thickness 3 (double the standard 1.5). https://claude.ai/code/session_014uUwDBtG5y5FuWcy5zqVD1
This commit is contained in:
parent
8f64694115
commit
971c1f2fc9
1 changed files with 1 additions and 6 deletions
|
|
@ -703,16 +703,11 @@ async function generatePDF() {
|
||||||
y -= 6;
|
y -= 6;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Item divider
|
|
||||||
pg.drawLine({start:{x:M.left,y}, end:{x:M.left+W,y}, thickness:1, color:accent});
|
|
||||||
y -= lh;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Grand total
|
// Grand total
|
||||||
needSpace(lh * 2);
|
needSpace(lh * 2);
|
||||||
pg.drawLine({start:{x:M.left,y}, end:{x:M.left+W,y}, thickness:1.5, color:accent});
|
pg.drawLine({start:{x:M.left,y}, end:{x:M.left+W,y}, thickness:3, color:accent});
|
||||||
y -= 4;
|
|
||||||
pg.drawLine({start:{x:M.left,y}, end:{x:M.left+W,y}, thickness:1.5, color:accent});
|
|
||||||
y -= lh;
|
y -= lh;
|
||||||
const gtStr = `Total reimbursement claim: ${baseCur} ${fmtAmt(state._grandTotal)}`;
|
const gtStr = `Total reimbursement claim: ${baseCur} ${fmtAmt(state._grandTotal)}`;
|
||||||
const gtW = fontBold.widthOfTextAtSize(gtStr, sz + 2);
|
const gtW = fontBold.widthOfTextAtSize(gtStr, sz + 2);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue