From 73fea61aead78abc083b2cc6d1c83f6f6d873aed Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Tue, 19 Aug 2025 20:51:08 -0300 Subject: [PATCH] =?UTF-8?q?Atualizando=20visualiza=C3=A7=C3=A3o=20dos=20de?= =?UTF-8?q?talhes=20do=20boleto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../financial_movements_ticket_consult.php | 52 ++++--------------- 1 file changed, 10 insertions(+), 42 deletions(-) diff --git a/vendor/action/financial_movements/financial_movements_ticket_consult.php b/vendor/action/financial_movements/financial_movements_ticket_consult.php index 608e8f4..cdeb972 100644 --- a/vendor/action/financial_movements/financial_movements_ticket_consult.php +++ b/vendor/action/financial_movements/financial_movements_ticket_consult.php @@ -114,8 +114,14 @@ try{ $movement_value_registration_tariff, $movement_value_settlement_tariff)){ - /** Prepara o retorno */ - $res = 'Consolidado com sucesso!'; + /** Prepara o retorno */ + $res = 'Consolidado com sucesso!'; + + } else { + + /** Prepara o retorno */ + $res = ''.$response->resultado->listaHistorico[$i]->descricaoHistorico.''; + } } elseif($response->resultado->situacaoBoleto == 'Baixado') { @@ -128,44 +134,6 @@ try{ } - /** Verifica se o status é 6 => liquidação para baixar o mesmo */ - // if($response->resultado->listaHistorico[$total]->tipoHistorico == 6){ - - // /** Verifica a situação do boleto */ - // if($response->resultado->situacaoBoleto != 'Baixado'){ - - // /** Prepara o valor pago */ - // $movementValuePaid = $Main->MoeadDB(str_replace('R$', '', strstr($response->resultado->listaHistorico[$total]->descricaoHistorico, 'R$'))); - - // /** Descrição da baixa */ - // $note = 'Baixado via consulta Sicoob automática - '.date('d/m/Y H:i:s') . ' - '.$_SESSION['USERSNAMEFIRST']; - - // /** Grava a baixa de pagamento */ - // if($FinancialMovements->SaveMovement($FinancialMovementsValidate->getFinancialMovementsId(), - // 0, - // $FinancialMovementsResult->financial_entries_id, - // substr($response->resultado->listaHistorico[$total]->dataHistorico, 0, 10), - // $movementValuePaid, - // $note, - // 0)){ - - // /** Prepara o retorno */ - // $res = 'Consolidado com sucesso!'; - - // } else { - - // /** Prepara o retorno */ - // $res = ''.$response->resultado->listaHistorico[$total]->descricaoHistorico.''; - // } - - // } elseif($response->resultado->situacaoBoleto == 'Baixado') { - - // /** Retorna a mensagem com seu respectivo erro **/ - // throw new InvalidArgumentException($response->resultado->listaHistorico[$total]->descricaoHistorico, 0); - // } - // } - - } else { /** Retorna a mensagem com seu respectivo erro **/ @@ -175,14 +143,14 @@ try{ } else { /** Retorna a mensagem com seu respectivo erro **/ - throw new InvalidArgumentException($ApiSicoobValidate->getErrors(), 0); + throw new InvalidArgumentException($ApiSicoob->getErrors(), 0); } } } else { /** Retorna a mensagem com seu respectivo erro **/ - throw new InvalidArgumentException($ClientsValidate->getErrors(), 0); + throw new InvalidArgumentException($FinancialMovementsValidate->getErrors(), 0); }