Atualizando financial_movements_save.php
This commit is contained in:
parent
a5707f9101
commit
fd226e99d3
1 changed files with 18 additions and 18 deletions
|
|
@ -78,13 +78,13 @@ try{
|
|||
/** Verifica se é uma tarifa de entrada */
|
||||
if( strstr($response->resultado->listaHistorico[$i]->descricaoHistorico, 'TAR. ENTRADA') ){
|
||||
|
||||
echo $movement_value_registration_tariff = $Main->MoeadDB(str_replace('R$', '', strstr($response->resultado->listaHistorico[$i]->descricaoHistorico, 'R$')));
|
||||
$movement_value_registration_tariff = $Main->MoeadDB(str_replace('R$', '', strstr($response->resultado->listaHistorico[$i]->descricaoHistorico, 'R$')));
|
||||
}
|
||||
|
||||
/** Verifica se é uma tarifa de liquidação */
|
||||
if( strstr($response->resultado->listaHistorico[$i]->descricaoHistorico, 'TAR. LIQUIDAÇÃO') ){
|
||||
|
||||
echo $movement_value_settlement_tariff = $Main->MoeadDB(str_replace('R$', '', strstr($response->resultado->listaHistorico[$i]->descricaoHistorico, 'R$')));
|
||||
$movement_value_settlement_tariff = $Main->MoeadDB(str_replace('R$', '', strstr($response->resultado->listaHistorico[$i]->descricaoHistorico, 'R$')));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -101,27 +101,27 @@ try{
|
|||
$movementValuePaid = $Main->MoeadDB(str_replace('R$', '', strstr($response->resultado->listaHistorico[$i]->descricaoHistorico, 'R$')));
|
||||
|
||||
/** Descrição da baixa */
|
||||
$note = 'Baixado via consulta Sicoob API - '.date('d/m/Y H:i:s') . ' - '.$_SESSION['USERSNAMEFIRST'];
|
||||
$note = 'Baixado via consulta Sicoob API - '.date('d/m/Y H:i:s');
|
||||
|
||||
/** 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 = '<span class="badge badge-success">Consolidado com sucesso!</span>';
|
||||
/** Prepara o retorno */
|
||||
$res = '<span class="badge badge-success">Consolidado com sucesso!</span>';
|
||||
|
||||
// } else {
|
||||
} else {
|
||||
|
||||
// /** Prepara o retorno */
|
||||
// $res = '<span class="badge badge-success">'.$response->resultado->listaHistorico[$i]->descricaoHistorico.'</span>';
|
||||
// }
|
||||
/** Prepara o retorno */
|
||||
$res = '<span class="badge badge-success">'.$response->resultado->listaHistorico[$i]->descricaoHistorico.'</span>';
|
||||
}
|
||||
|
||||
|
||||
} elseif($response->resultado->situacaoBoleto == 'Baixado') {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue