diff --git a/call_center_pro.php b/call_center_pro.php index adc43d26..b9d2cc4d 100644 --- a/call_center_pro.php +++ b/call_center_pro.php @@ -433,7 +433,7 @@ try { $order['promo_final_evidencia_cargada'] = trim((string) ($order['promo_final_evidencia_path'] ?? '')) !== ''; $order['es_promo_final'] = $order['promo_final_habilitado'] && $order['promo_final_evidencia_cargada']; $order['promo_final_pendiente'] = $order['promo_final_habilitado'] && !$order['promo_final_evidencia_cargada']; - $order['pendiente_logistica_destino'] = $storeKey === 'otra_tienda' + $order['pendiente_logistica_destino'] = cc_test_is_tuani_store_key($storeKey) ? cc_test_pending_logistica_destination($order) : null; $order['pendiente_logistica'] = $order['pendiente_logistica_destino'] !== null; @@ -603,7 +603,7 @@ try { return -1; } - if ($storeKey === 'otra_tienda') { + if (cc_test_is_tuani_store_key($storeKey)) { $aSourceRow = (int) ($a['source_row'] ?? 0); $bSourceRow = (int) ($b['source_row'] ?? 0); if ($aSourceRow > 0 && $bSourceRow > 0 && $aSourceRow !== $bSourceRow) { @@ -804,13 +804,14 @@ require_once 'layout_header.php'; Pedidos Asignados -