From a8f3e20242f0427f0129b1874b5bbf908ff71bf4 Mon Sep 17 00:00:00 2001 From: Lixian Zhou Date: Thu, 12 Mar 2026 14:50:08 -0400 Subject: [PATCH] fix --- app/controllers/report.controller.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/report.controller.js b/app/controllers/report.controller.js index 564981d..f64b633 100644 --- a/app/controllers/report.controller.js +++ b/app/controllers/report.controller.js @@ -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);