From 240739e6519724e817eb002274f5ecd167d138ba Mon Sep 17 00:00:00 2001 From: Lixian Zhou Date: Thu, 12 Mar 2026 14:53:01 -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 f64b633..564981d 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 = "✓"; + yValue = "Y"; 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: "✓" })); + yRects.forEach((rect) => markDrawQueue.push({ rect, text: "Y" })); } else if (hasInCenterStatusByCandidate(customer, relativeRouteCustomer, customerInOtherRoute)) { - yValue = "✓"; + yValue = "Y"; 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: "✓" })); + yRects.forEach((rect) => markDrawQueue.push({ rect, text: "Y" })); } else { yValue = ""; - nValue = "✕"; + nValue = "N"; 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: "✕" })); + nRects.forEach((rect) => markDrawQueue.push({ rect, text: "N" })); } const outboundStatus = findOutboundStatusByCustomerId(outboundCustomerStatuses, customer?.customer_id);