Deposit slip: remove outer border rect, switch deposit total to Courier
- Remove the outer border rect around the main content area - Change DEPOSIT TOTAL font from Helvetica-Bold to Courier to match the monospaced style used for other amount fields - Update strip element Y positions for better spacing
This commit is contained in:
@@ -80,11 +80,11 @@ const SL = {
|
|||||||
// Y positions are the TOP anchor; text flows DOWNWARD from there.
|
// Y positions are the TOP anchor; text flows DOWNWARD from there.
|
||||||
stripCenterX: 0.32, // ≈ stripX/2; tune to center text in strip width
|
stripCenterX: 0.32, // ≈ stripX/2; tune to center text in strip width
|
||||||
|
|
||||||
// Order top-to-bottom: "DEPOSIT TOTAL $ X.XX" line → MICR → "TOTAL ITEMS" → count
|
// Order top-to-bottom: "DEPOSIT TOTAL $ X.XX" → MICR → "TOTAL ITEMS" → count
|
||||||
depTotalY: 1.0, // combined "DEPOSIT TOTAL $ X.XX" rotated text start
|
depTotalY: 0.7, // combined "DEPOSIT TOTAL $ X.XX" rotated text start
|
||||||
micrY: 2.5, // MICR starts here, flows ~2.5" downward
|
micrY: 2.2, // MICR starts here (~2.4" long at 11pt); ends ~4.6"
|
||||||
checkCountLabelY: 5.5, // "TOTAL ITEMS" label start
|
checkCountLabelY: 5.0, // "TOTAL ITEMS" label start
|
||||||
checkCountValY: 6.5, // check count value start
|
checkCountValY: 6.1, // check count value start
|
||||||
|
|
||||||
// ── Colours ───────────────────────────────────────────────────────────────
|
// ── Colours ───────────────────────────────────────────────────────────────
|
||||||
bgLineColor: '#888888',
|
bgLineColor: '#888888',
|
||||||
@@ -250,10 +250,6 @@ function generateDepositSlip(account, deposit, items) {
|
|||||||
|
|
||||||
// No fill on left strip (white/transparent per user preference)
|
// No fill on left strip (white/transparent per user preference)
|
||||||
|
|
||||||
// Outer border of main content area (right of strip)
|
|
||||||
doc.rect(SL.stripX * PT, 0, (SL.W - SL.stripX) * PT, SL.H * PT)
|
|
||||||
.lineWidth(1).stroke('#000000');
|
|
||||||
|
|
||||||
// Vertical divider between check# and amount columns
|
// Vertical divider between check# and amount columns
|
||||||
const dividerX = (SL.colCentsR - SL.colCentsW - SL.colDollarSep - 7 * SL.digitW) * PT;
|
const dividerX = (SL.colCentsR - SL.colCentsW - SL.colDollarSep - 7 * SL.digitW) * PT;
|
||||||
const gridTopPt = SL.gridTop * PT;
|
const gridTopPt = SL.gridTop * PT;
|
||||||
@@ -422,7 +418,7 @@ function generateDepositSlip(account, deposit, items) {
|
|||||||
doc.save();
|
doc.save();
|
||||||
doc.translate(SL.stripCenterX * PT, SL.depTotalY * PT);
|
doc.translate(SL.stripCenterX * PT, SL.depTotalY * PT);
|
||||||
doc.rotate(90);
|
doc.rotate(90);
|
||||||
doc.font('Helvetica-Bold').fontSize(7).fillColor('#000000')
|
doc.font('Courier').fontSize(7).fillColor('#000000')
|
||||||
.text(`DEPOSIT TOTAL $ ${fmtDepTotal}`, 0, 0, { lineBreak: false });
|
.text(`DEPOSIT TOTAL $ ${fmtDepTotal}`, 0, 0, { lineBreak: false });
|
||||||
doc.restore();
|
doc.restore();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user