This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user