fix
All checks were successful
Build And Deploy Main / build-and-deploy (push) Successful in 32s

This commit is contained in:
2026-03-12 14:53:01 -04:00
parent a8f3e20242
commit 240739e651

View File

@@ -248,26 +248,26 @@ const buildRoutePdfBuffer = async (templateBytes, route, seqNum, driversMap, veh
if (enterCenterTime) { if (enterCenterTime) {
safeSetField(form, `arrive_${row}`, enterCenterTime); safeSetField(form, `arrive_${row}`, enterCenterTime);
} }
yValue = ""; yValue = "Y";
nValue = ""; nValue = "";
safeSetField(form, `y_${row}`, yValue, { fontSize: 12, center: true, blackText: true }); safeSetField(form, `y_${row}`, yValue, { fontSize: 12, center: true, blackText: true });
safeSetField(form, `n_${row}`, nValue, { fontSize: 12, center: true, blackText: true }); safeSetField(form, `n_${row}`, nValue, { fontSize: 12, center: true, blackText: true });
const yRects = collectFieldRects(form, `y_${row}`); const yRects = collectFieldRects(form, `y_${row}`);
yRects.forEach((rect) => markDrawQueue.push({ rect, text: "" })); yRects.forEach((rect) => markDrawQueue.push({ rect, text: "Y" }));
} else if (hasInCenterStatusByCandidate(customer, relativeRouteCustomer, customerInOtherRoute)) { } else if (hasInCenterStatusByCandidate(customer, relativeRouteCustomer, customerInOtherRoute)) {
yValue = ""; yValue = "Y";
nValue = ""; nValue = "";
safeSetField(form, `y_${row}`, yValue, { fontSize: 12, center: true, blackText: true }); safeSetField(form, `y_${row}`, yValue, { fontSize: 12, center: true, blackText: true });
safeSetField(form, `n_${row}`, nValue, { fontSize: 12, center: true, blackText: true }); safeSetField(form, `n_${row}`, nValue, { fontSize: 12, center: true, blackText: true });
const yRects = collectFieldRects(form, `y_${row}`); const yRects = collectFieldRects(form, `y_${row}`);
yRects.forEach((rect) => markDrawQueue.push({ rect, text: "" })); yRects.forEach((rect) => markDrawQueue.push({ rect, text: "Y" }));
} else { } else {
yValue = ""; yValue = "";
nValue = ""; nValue = "N";
safeSetField(form, `y_${row}`, yValue, { fontSize: 12, center: true, blackText: true }); safeSetField(form, `y_${row}`, yValue, { fontSize: 12, center: true, blackText: true });
safeSetField(form, `n_${row}`, nValue, { fontSize: 12, center: true, blackText: true }); safeSetField(form, `n_${row}`, nValue, { fontSize: 12, center: true, blackText: true });
const nRects = collectFieldRects(form, `n_${row}`); const nRects = collectFieldRects(form, `n_${row}`);
nRects.forEach((rect) => markDrawQueue.push({ rect, text: "" })); nRects.forEach((rect) => markDrawQueue.push({ rect, text: "N" }));
} }
const outboundStatus = findOutboundStatusByCustomerId(outboundCustomerStatuses, customer?.customer_id); const outboundStatus = findOutboundStatusByCustomerId(outboundCustomerStatuses, customer?.customer_id);