8:57.927 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/master refs/remotes/master [1ms] 2025-05-05 11:58:57.937 [info] > git status -z -uall [4ms] 2025-05-05 11:58:57.938 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [2ms] 2025-05-05 12:01:03.949 [info] > git config --get commit.template [5ms] 2025-05-05 12:01:03.950 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/master refs/remotes/master [1ms] 2025-05-05 12:01:03.960 [info] > git status -z -uall [4ms] 2025-05-05 12:01:03.961 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [1ms] 2025-05-05 12:01:16.026 [info] > git config --get commit.template [5ms] 2025-05-05 12:01:16.027 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/master refs/remotes/master [2ms] 2025-05-05 12:01:16.036 [info] > git status -z -uall [4ms] 2025-05-05 12:01:16.037 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [1ms] 2025-05-05 12:01:18.217 [info] > git rev-parse --show-toplevel [0ms] 2025-05-05 12:01:18.217 [info] fatal: not a git repository (or any of the parent directories): .git 2025-05-05 12:01:21.051 [info] > git config --get commit.template [5ms] 2025-05-05 12:01:21.051 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/master refs/remotes/master [1ms] 2025-05-05 12:01:21.062 [info] > git status -z -uall [6ms] 2025-05-05 12:01:21.062 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [2ms] 2025-05-05 12:01:40.581 [info] > git rev-parse --show-toplevel [0ms] 2025-05-05 12:01:40.581 [info] fatal: not a git repository (or any of the parent directories): .git 2025-05-05 12:02:54.448 [info] > git rev-parse --show-toplevel [2ms] 2025-05-05 12:02:54.448 [info] fatal: not a git repository (or any of the parent directories): .git 2025-05-05 12:03:11.178 [info] > git config --get commit.template [5ms] 2025-05-05 12:03:11.178 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/master refs/remotes/master [1ms] 2025-05-05 12:03:11.188 [info] > git status -z -uall [4ms] 2025-05-05 12:03:11.189 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [2ms] 2025-05-05 12:03:16.202 [info] > git config --get commit.template [5ms] 2025-05-05 12:03:16.203 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/master refs/remotes/master [2ms] 2025-05-05 12:03:16.212 [info] > git status -z -uall [4ms] 2025-05-05 12:03:16.213 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [2ms] 2025-05-05 12:03:21.230 [info] > git config --get commit.template [6ms] 2025-05-05 12:03:21.230 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/master refs/remotes/master [1ms] 2025-05-05 12:03:21.239 [info] > git status -z -uall [4ms] 2025-05-05 12:03:21.240 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [1ms] 2025-05-05 12:03:22.430 [info] > git rev-parse --show-toplevel [0ms] 2025-05-05 12:03:22.430 [info] fatal: not a git repository (or any of the parent directories): .git 2025-05-05 12:05:23.989 [info] > git config --get commit.template [5ms] 2025-05-05 12:05:23.991 [info] > git for-each-ref --format=%(refname 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 . '