Thinner check lines; second signature line toggle

- Halve all check line thicknesses (line_thick * 0.5)
- Add second_signature column to account table with runtime migration
- Account settings toggle: enables a second signature line drawn 0.25"
  above the primary signature line, matching its width and thickness
This commit is contained in:
2026-03-18 14:04:15 -06:00
parent 964823c8b4
commit c944c84939
7 changed files with 39 additions and 6 deletions
+16 -1
View File
@@ -159,7 +159,7 @@ function generateCheckPdf(account, checks, fields) {
const endPos = pt(field.x_end_pos, field.y_end_pos);
doc.moveTo(pos.x, pos.y)
.lineTo(endPos.x, endPos.y)
.lineWidth(field.line_thick || 1)
.lineWidth((field.line_thick || 1) * 0.5)
.stroke('#000000');
break;
}
@@ -211,6 +211,21 @@ function generateCheckPdf(account, checks, fields) {
}
}
// --- Second signature line ---
if (account.second_signature) {
const sigLine = bodyFields.find(
f => f.field_type === 'Line' && f.field_name.toLowerCase().includes('signature')
);
if (sigLine) {
const p1 = pt(sigLine.x_pos, sigLine.y_pos - 0.25);
const p2 = pt(sigLine.x_end_pos, sigLine.y_end_pos - 0.25);
doc.moveTo(p1.x, p1.y)
.lineTo(p2.x, p2.y)
.lineWidth((sigLine.line_thick || 1) * 0.5)
.stroke('#000000');
}
}
// --- MICR line ---
const micrLine = formatMicrLine(account.routing_number, account.account_number, check.check_no);
const micrPos = pt(0.3, MICR_Y_IN);