st.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 437.7453099996783 ms 2025-05-05 10:47:29.081 [info] [streamChoices] request done: headerRequestId: [42d183c3-15e8-46c2-ad17-f84cc3c38389] model deployment ID: [] 2025-05-05 10:47:29.328 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 245.4198930002749 ms 2025-05-05 10:47:29.330 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-05-05 10:47:29.334 [info] [streamChoices] request done: headerRequestId: [38d8afe7-2196-4ba2-986a-8f161f1ae102] model deployment ID: [] 2025-05-05 10:47:31.279 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 334.6818889998831 ms 2025-05-05 10:47:31.282 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-05-05 10:47:31.285 [info] [streamChoices] request done: headerRequestId: [40912ab3-d411-4cc6-8ad6-7f0336180c67] model deployment ID: [] 2025-05-05 10:47:33.377 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 732.6965600000694 ms 2025-05-05 10:47:33.380 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-05-05 10:47:33.383 [info] [streamChoices] request done: headerRequestId: [b0c31a66-056f-491e-8f1d-7e78863ef37d] model deployment ID: [] 2025-05-05 10:47:55.081 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 505.345160999801 ms 2025-05-05 10:47:55.083 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-05-05 10:47:55.087 [info] [streamChoices] request done: headerRequestId: [b13bafe8-aa6a-4a2d-9b9d-b400061be33d] model deployment ID: [] 2025-05-05 10:50:42.959 [warning] [relatedFiles] unknown language html 2025-05-05 10:50:43.632 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 645.030389000196 ms 2025-05-05 10:50:43.634 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-05-05 10:50:43.636 [info] [streamChoices] request done: headerRequestId: [b0f57763-2f4f-4623-af86-87669455e5bb] model deployment ID: [] 2025-05-05 10:50:43.637 [info] [ghostText] Filtered out solution matching next line 2025-05-05 10:50:45.368 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 185.22090700035915 ms 2025-05-05 10:50:45.370 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-05-05 10:50:45.370 [info] [streamChoices] request done: headerRequestId: [30872096-a086-485a-b0f5-ad90bac2abb0] model deployment ID: [] 2025-05-05 10:51:25.473 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 464.2609739997424 ms 2025-05-05 10:51:25.474 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-05-05 10:51:25.474 [info] [streamChoices] request done: headerRequestId: [ba72e581-ade6-49ff-b04b-a7ae2859ae36] model deployment ID: [] 2025-05-05 10:55:37.118 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 492.3527250001207 ms 2025-05-05 10:55:37.120 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-05-05 10:55:37.121 [info] [streamChoices] request done: headerRequestId: [f3335277-6732-4dff-8558-6e28f6f4e79d] model deployment ID: [] 2025-05-05 11:53:02.566 [info] [fetcher] Using Helix fetcher, Electron fetcher is not available. 2025-05-05 11:53:02.566 [info] [code-referencing] Public code references are enabled. 2025-05-05 11:53:02.729 [info] [fetcher] Using Helix fetcher, Electron fetcher is not available. 2025-05-05 11:53:03.140 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copil function formatMoney(string $amount): string { $clean = preg_replace('/[^0-9.]/', '', $amount); return '$ ' . number_format((float)$clean, 2, '.', ','); } # ------------------------------------------------------------------------------------------------------------------------------------------------------------------ # MODAL PARA MOSTRAR ERRORES # ------------------------------------------------------------------------------------------------------------------------------------------------------------------ --> function showMessage(string $title, string $message): void { // Generar el HTML del modal echo <<
Usuario activo: " . $user->name."
"; echo "Rol activo: " . $user->user_role."
"; echo "eMail: ".$user->email."
"; echo "Estatus: " . $user->status."
"; } # ------------------------------------------------------------------------------------------------------------------------------------------------------------------ # BALANZA DE COMPROBACIÓN # ------------------------------------------------------------------------------------------------------------------------------------------------------------------ function getBalCom($zbToken){ $sOrganiZB = ""; if (isset($_REQUEST['pOrganiZB'])) { $sOrganiZB = $_REQUEST['pOrganiZB']; } $sAnioCat = $_POST['anio']; $sMesCat = $_POST['mes']; $sTipoEnv = $_POST['tipo']; $file_name = basename($_FILES["fileToUpload"]["name"]); $file_name = str_replace(' ', '_', $file_name); $temp_file = $_FILES["fileToUpload"]["tmp_name"]; $target_dir = "archs_csv/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $target_file = str_replace(' ', '_', $target_file); $uploadOk = 1; $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); if(empty($_POST['anio'])) { echo 'Por favor introduzca el Año para el proceso.'; } else if(empty($_POST['mes'])) { echo 'Por favor introduzca el Mes para el proceso.'; } else if(empty($_POST['tipo'])) { echo 'Por favor introduzca el Tipo para el proceso.'; } else if(empty($file_name)) { showMessage($title = 'Información faltante', $message = 'Por favor seleccione el archivo a procesar.'); return; } else if($sOrganiZB == "") { showMessage($title = 'Información erronea', $message = 'Por favor introduzca el ID de la Organización de Zoho Books.'); return; } else { // Check if file already exists if (file_exists($target_file)) { # showMessage($title = 'Información', $message = 'Se eliminó un archivo pre-existente con el mismo nombre.'); } // Allow certain file formats if($imageFileType != "csv" ) { showMessage($title = 'Información erronea', $message = 'El archivos debe contener el libro mayor y ser tipo CSV.'); return; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { ?>message . '