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

This commit is contained in:
2026-03-12 14:50:08 -04:00
parent d21bf201f9
commit a8f3e20242

View File

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