mirror of
https://github.com/kbenestad/reimburse.git
synced 2026-06-18 08:04:31 +00:00
Draw item separator at stripe bottom, not above it
This commit is contained in:
parent
ea8f2ed542
commit
3f1ea543f1
1 changed files with 2 additions and 2 deletions
|
|
@ -956,8 +956,8 @@ async function generatePDF() {
|
|||
// Item header
|
||||
needSpace(lh * 7); // need room for separator gap + header + one line
|
||||
if (itemIdx > 0) {
|
||||
y -= lh; // create gap below previous item before drawing separator
|
||||
pg.drawLine({start:{x:M.left, y:y+lh}, end:{x:M.left+W, y:y+lh}, thickness:0.75, color:accent});
|
||||
pg.drawLine({start:{x:M.left, y}, end:{x:M.left+W, y}, thickness:0.75, color:accent});
|
||||
y -= lh; // space between separator and item header text
|
||||
}
|
||||
pg.drawText('ITEM / PROJECT / TRAVEL', {x:M.left, y, size:sz, font:fontBold, color:accent});
|
||||
const subStr = `Subtotal: ${baseCur} ${fmtAmt(item._subtotal)}`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue