Autosave: 20260731-042504
This commit is contained in:
parent
b009b4b95c
commit
ccb58cbbb2
@ -347,12 +347,6 @@ $viewCards = $isTuaniRecuperablesStore ? [
|
||||
'active_class' => 'bg-light border',
|
||||
],
|
||||
] : [
|
||||
'pendientes_hoy' => [
|
||||
'label' => 'Bandeja principal',
|
||||
'heading' => 'Bandeja principal',
|
||||
'stat_key' => 'pendientes_hoy',
|
||||
'active_class' => 'bg-dark text-white',
|
||||
],
|
||||
'nuevos_hoy' => [
|
||||
'label' => 'Asignados hoy',
|
||||
'heading' => 'Pedidos asignados hoy',
|
||||
@ -401,6 +395,12 @@ $viewCards = $isTuaniRecuperablesStore ? [
|
||||
'stat_key' => 'cerrados',
|
||||
'active_class' => 'bg-secondary-subtle border border-secondary',
|
||||
],
|
||||
'pendientes_hoy' => [
|
||||
'label' => 'Bandeja principal',
|
||||
'heading' => 'Bandeja principal',
|
||||
'stat_key' => 'pendientes_hoy',
|
||||
'active_class' => 'bg-dark text-white',
|
||||
],
|
||||
'todos' => [
|
||||
'label' => 'Todos',
|
||||
'heading' => 'Todos los pedidos cargados',
|
||||
@ -842,12 +842,33 @@ try {
|
||||
}
|
||||
|
||||
if ($view === 'ultimos_3_dias') {
|
||||
$aOrderNumber = static function (array $order): int {
|
||||
$codigo = trim((string) ($order['codigo'] ?? ''));
|
||||
if ($codigo !== '') {
|
||||
$digits = preg_replace("/[^0-9]+/", '', $codigo);
|
||||
if ($digits !== '') {
|
||||
return (int) $digits;
|
||||
}
|
||||
}
|
||||
|
||||
$sourceRow = (int) ($order['source_row'] ?? 0);
|
||||
if ($sourceRow > 0) {
|
||||
return $sourceRow;
|
||||
}
|
||||
|
||||
return (int) ($order['id'] ?? 0);
|
||||
};
|
||||
$aOrderNumberValue = $aOrderNumber($a);
|
||||
$bOrderNumberValue = $aOrderNumber($b);
|
||||
if ($aOrderNumberValue !== $bOrderNumberValue) {
|
||||
return $bOrderNumberValue <=> $aOrderNumberValue;
|
||||
}
|
||||
$aRecent = cc_test_recent_followup_anchor($a);
|
||||
$bRecent = cc_test_recent_followup_anchor($b);
|
||||
$aRecentTs = $aRecent instanceof DateTimeImmutable ? $aRecent->getTimestamp() : null;
|
||||
$bRecentTs = $bRecent instanceof DateTimeImmutable ? $bRecent->getTimestamp() : null;
|
||||
if ($aRecentTs !== null && $bRecentTs !== null && $aRecentTs !== $bRecentTs) {
|
||||
return $aRecentTs <=> $bRecentTs;
|
||||
return $bRecentTs <=> $aRecentTs;
|
||||
}
|
||||
if ($aRecentTs !== null && $bRecentTs === null) {
|
||||
return -1;
|
||||
@ -1833,13 +1854,10 @@ require_once 'layout_header.php';
|
||||
<input type="date" class="form-control" id="fecha-entrega-<?php echo htmlspecialchars($order['source_key']); ?>" value="<?php echo htmlspecialchars(cc_test_format_date_input($order['fecha_entrega_programada'] ?? null)); ?>">
|
||||
<div class="form-text">Úsalo cuando el cliente quede en Confirmado fecha.</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label for="nota-<?php echo htmlspecialchars($order['source_key']); ?>" class="form-label">COLOCAR AQUI OBSERVACION DEL CLIENTE O (DEDICATORIA O GRABADO)</label>
|
||||
<textarea class="form-control" id="nota-<?php echo htmlspecialchars($order['source_key']); ?>" rows="3" placeholder="Ej.: Solicita dedicatoria para hija María, Ej.: Desea antes de las 4PM"><?php echo htmlspecialchars($order['nota_seguimiento']); ?></textarea>
|
||||
</div>
|
||||
<?php $numeroCuentaSedeIdSeleccionado = trim((string) ($order['numero_cuenta_sede_id'] ?? '')); ?>
|
||||
<?php $numeroCuentaDniSeleccionado = trim((string) ($order['numero_cuenta_dni'] ?? '')); ?>
|
||||
<?php $mostrarCamposNumeroCuenta = cc_test_requires_account_number_fields($order['estado']); ?>
|
||||
<div class="w-100 js-numero-cuenta-break <?php echo $mostrarCamposNumeroCuenta ? '' : 'd-none'; ?>" data-source-key="<?php echo htmlspecialchars($order['source_key']); ?>" aria-hidden="true"></div>
|
||||
<div class="col-md-6 js-numero-cuenta-group <?php echo $mostrarCamposNumeroCuenta ? '' : 'd-none'; ?>" data-source-key="<?php echo htmlspecialchars($order['source_key']); ?>">
|
||||
<label for="numero_cuenta_sede_id-<?php echo htmlspecialchars($order['source_key']); ?>" class="form-label">SEDE / ID</label>
|
||||
<input type="text" class="form-control" id="numero_cuenta_sede_id-<?php echo htmlspecialchars($order['source_key']); ?>" value="<?php echo htmlspecialchars($numeroCuentaSedeIdSeleccionado); ?>" placeholder="Ej.: SJL / 1542">
|
||||
@ -1942,6 +1960,11 @@ require_once 'layout_header.php';
|
||||
<input type="hidden" id="distrito-<?php echo htmlspecialchars($order['source_key']); ?>" value="<?php echo htmlspecialchars($distritoSeleccionado); ?>">
|
||||
<div class="form-text">Si la provincia aún no tiene cobertura cargada, podrás escribir el distrito manualmente.</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label for="nota-<?php echo htmlspecialchars($order['source_key']); ?>" class="form-label">COLOCAR AQUI OBSERVACION DEL CLIENTE O (DEDICATORIA O GRABADO)</label>
|
||||
<textarea class="form-control" id="nota-<?php echo htmlspecialchars($order['source_key']); ?>" rows="3" placeholder="Ej.: Solicita dedicatoria para hija María, Ej.: Desea antes de las 4PM"><?php echo htmlspecialchars($order['nota_seguimiento']); ?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label for="coordenadas-<?php echo htmlspecialchars($order['source_key']); ?>" class="form-label">Coordenadas</label>
|
||||
<input type="text" class="form-control" id="coordenadas-<?php echo htmlspecialchars($order['source_key']); ?>" value="<?php echo htmlspecialchars((string) ($order['coordenadas'] ?? '')); ?>" inputmode="decimal" autocomplete="off" spellcheck="false" placeholder="-12.082029, -77.069024">
|
||||
@ -2373,6 +2396,9 @@ function toggleAgendaFields(sourceKey) {
|
||||
document.querySelectorAll('.js-envio-group[data-source-key="' + sourceKey + '"]').forEach(group => {
|
||||
group.classList.toggle('d-none', !needsShippingDetails);
|
||||
});
|
||||
document.querySelectorAll('.js-numero-cuenta-break[data-source-key="' + sourceKey + '"]').forEach(breakElement => {
|
||||
breakElement.classList.toggle('d-none', !needsAccountNumberDetails);
|
||||
});
|
||||
document.querySelectorAll('.js-numero-cuenta-group[data-source-key="' + sourceKey + '"]').forEach(group => {
|
||||
group.classList.toggle('d-none', !needsAccountNumberDetails);
|
||||
});
|
||||
|
||||
@ -80,6 +80,8 @@ function cc_test_assessor_default_color_hex(string $assessorKey): string
|
||||
'KARINA' => '#0D6EFD',
|
||||
'ESTEFANYA' => '#198754',
|
||||
'CARMEN' => '#FF00FF',
|
||||
'MIRELLA' => '#EFBF04',
|
||||
'LUCIBOT' => '#FD7E14',
|
||||
default => $palette[$paletteIndex],
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user