| Line 1350... |
Line 1350... |
| 1350 |
outletLabel = outletLabel.substring(v.code.length + 3);
|
1350 |
outletLabel = outletLabel.substring(v.code.length + 3);
|
| 1351 |
}
|
1351 |
}
|
| 1352 |
if (!outletLabel) outletLabel = v.code || '';
|
1352 |
if (!outletLabel) outletLabel = v.code || '';
|
| 1353 |
html += '<div class="route-stop route-stop-clickable" data-fofoid="' + v.id + '" data-daynum="' + day.dayNumber + '" style="cursor:pointer;' + (isLeadVisit ? 'background:#fff3cd;border-left:3px solid #e67e22;' : '') + '">';
|
1353 |
html += '<div class="route-stop route-stop-clickable" data-fofoid="' + v.id + '" data-daynum="' + day.dayNumber + '" style="cursor:pointer;' + (isLeadVisit ? 'background:#fff3cd;border-left:3px solid #e67e22;' : '') + '">';
|
| 1354 |
html += '<span class="stop-num" style="' + (isLeadVisit ? 'background:#e67e22;' : '') + '">' + (i + 1) + '</span>';
|
1354 |
html += '<span class="stop-num" style="' + (isLeadVisit ? 'background:#e67e22;' : '') + '">' + (i + 1) + '</span>';
|
| 1355 |
html += '<div class="stop-info"><div class="stop-name">' + outletLabel + (isLeadVisit ? ' <span style="color:#e67e22;font-size:10px;">LEAD VISIT</span>' : '') + '</div>';
|
1355 |
html += '<div class="stop-info"><div class="stop-name">' + outletLabel + (isLeadVisit ? ' <span style="background:#e67e22;color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:3px;margin-left:4px;letter-spacing:0.3px;">LEAD VISIT</span>' : '') + '</div>';
|
| 1356 |
html += '<div class="stop-meta">' + (v.code || '') + '</div>';
|
1356 |
html += '<div class="stop-meta">' + (v.code || '') + '</div>';
|
| 1357 |
|
1357 |
|
| 1358 |
// Show "Last Visit" + "Day Break" buttons on last stop of current day
|
1358 |
// Show "Last Visit" + "Day Break" buttons on last stop of current day
|
| 1359 |
if (isLastStop && isCurrent && !day.endAction) {
|
1359 |
if (isLastStop && isCurrent && !day.endAction) {
|
| 1360 |
html += '<div style="margin-top:4px;display:flex;gap:4px;">';
|
1360 |
html += '<div style="margin-top:4px;display:flex;gap:4px;">';
|