mirror of
https://github.com/kbenestad/reimburse.git
synced 2026-06-18 08:04:31 +00:00
Skip accent rule above first item header
This commit is contained in:
parent
71a0e3a780
commit
92760dffca
1 changed files with 2 additions and 2 deletions
|
|
@ -952,10 +952,10 @@ async function generatePDF() {
|
|||
y -= lh;
|
||||
|
||||
// Items
|
||||
state.items.forEach(item => {
|
||||
state.items.forEach((item, itemIdx) => {
|
||||
// Item header
|
||||
needSpace(lh * 6); // need room for at least header + one line
|
||||
pg.drawLine({start:{x:M.left, y:y+3}, end:{x:M.left+W, y:y+3}, thickness:0.75, color:accent});
|
||||
if (itemIdx > 0) pg.drawLine({start:{x:M.left, y:y+3}, end:{x:M.left+W, y:y+3}, thickness:0.75, color:accent});
|
||||
pg.drawText('ITEM / PROJECT / TRAVEL', {x:M.left, y, size:sz, font:fontBold, color:accent});
|
||||
const subStr = `Subtotal: ${baseCur} ${fmtAmt(item._subtotal)}`;
|
||||
const subW = fontBold.widthOfTextAtSize(subStr, sz);
|
||||
|
|
|
|||
Loading…
Reference in a new issue