diff --git a/vendor/action/financial_movements/financial_movements_ticket_consult.php b/vendor/action/financial_movements/financial_movements_ticket_consult.php index cdeb972..5d6fc9d 100644 --- a/vendor/action/financial_movements/financial_movements_ticket_consult.php +++ b/vendor/action/financial_movements/financial_movements_ticket_consult.php @@ -78,13 +78,13 @@ try{ /** Verifica se é uma tarifa de entrada */ if( strstr($response->resultado->listaHistorico[$total]->descricaoHistorico, 'TAR. ENTRADA') ){ - $movement_value_registration_tariff = $Main->MoeadDB(str_replace('R$', '', strstr($response->resultado->listaHistorico[$total]->descricaoHistorico, 'R$'))); + echo $movement_value_registration_tariff = $Main->MoeadDB(str_replace('R$', '', strstr($response->resultado->listaHistorico[$total]->descricaoHistorico, 'R$'))); } /** Verifica se é uma tarifa de liquidação */ if( strstr($response->resultado->listaHistorico[$total]->descricaoHistorico, 'TAR. LIQUIDAÇÃO') ){ - $movement_value_settlement_tariff = $Main->MoeadDB(str_replace('R$', '', strstr($response->resultado->listaHistorico[$total]->descricaoHistorico, 'R$'))); + echo $movement_value_settlement_tariff = $Main->MoeadDB(str_replace('R$', '', strstr($response->resultado->listaHistorico[$total]->descricaoHistorico, 'R$'))); } } @@ -104,24 +104,24 @@ try{ $note = 'Baixado via consulta Sicoob API - '.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[$i]->dataHistorico, 0, 10), - $movementValuePaid, - $note, - 0, - $movement_value_registration_tariff, - $movement_value_settlement_tariff)){ + // if($FinancialMovements->SaveMovement($FinancialMovementsValidate->getFinancialMovementsId(), + // 0, + // $FinancialMovementsResult->financial_entries_id, + // substr($response->resultado->listaHistorico[$i]->dataHistorico, 0, 10), + // $movementValuePaid, + // $note, + // 0, + // $movement_value_registration_tariff, + // $movement_value_settlement_tariff)){ - /** Prepara o retorno */ - $res = 'Consolidado com sucesso!'; + // /** Prepara o retorno */ + // $res = 'Consolidado com sucesso!'; - } else { + // } else { - /** Prepara o retorno */ - $res = ''.$response->resultado->listaHistorico[$i]->descricaoHistorico.''; - } + // /** Prepara o retorno */ + // $res = ''.$response->resultado->listaHistorico[$i]->descricaoHistorico.''; + // } } elseif($response->resultado->situacaoBoleto == 'Baixado') {