Invoice and clearance seal approval

This commit is contained in:
hagiye
2026-06-27 01:22:14 +03:00
parent b2b668a392
commit 29bdf68742
3 changed files with 22 additions and 13 deletions

View File

@@ -93,6 +93,16 @@ const buildAuthorizationBand = (label: 'PAID' | 'CLEARED') => [
buildCircularSeal(452, 155, label),
];
const buildWarehouseOfficerSealBand = () => [
lineOp(60, 218, 535, 218),
textOp('WAREHOUSE OFFICER SEAL', 92, 194, 9, true, GREEN),
buildCircularSeal(170, 128, 'CLEARED'),
textOp('Officer in charge name / signature / date:', 292, 154, 10),
lineOp(292, 132, 535, 132, '0 0 0'),
textOp('Customer or driver name / signature / date:', 292, 94, 10),
lineOp(292, 72, 535, 72, '0 0 0'),
];
function buildSimplePdf(lines: PdfLine[], rawOps: string[] = []): Blob {
let y = 800;
const streamLines = lines.map((line) => {
@@ -258,10 +268,6 @@ export function buildWarehouseExitPaperPdf(input: WarehouseFeeInvoice | Warehous
{ text: `Release Date & Time: ${fmtDate(releasedAt)}`, align: 'center' },
{ text: 'This sealed document authorizes the listed booking/goods to leave the warehouse gate.', yGap: 30, align: 'center' },
], [
...buildAuthorizationBand('CLEARED'),
textOp('Warehouse officer name / signature / date:', 72, 190, 10),
lineOp(260, 188, 360, 188, '0 0 0'),
textOp('Customer or driver name / signature / date:', 72, 148, 10),
lineOp(260, 146, 360, 146, '0 0 0'),
...buildWarehouseOfficerSealBand(),
]);
}