forked from Claudio/integracao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
569 B
15 lines
569 B
<?php |
|
include 'IxcSoft.php'; |
|
$ixc = new IxcSoft(); |
|
|
|
$idcliente = $ixc->agi()->get_variable('CODCLIENTE', true); |
|
$pendencias = $ixc->verificaBloqueioInternet($idcliente); |
|
|
|
if (in_array('INADIMPLENTE', $pendencias) || in_array('BLOQUEADO', $pendencias)) { |
|
$ixc->agi()->set_variable("PENDENTE", "1"); |
|
$ixc->executarFluxo('ANUNCIO', 'INT_PENDENCIA_ATT_V2');// Inadimplente |
|
} else { |
|
$ixc->agi()->set_variable("PENDENTE", "0"); |
|
$ixc->executarFluxo('ANUNCIO', 'INT_DIRECIONA_FATURA_ATT'); // Cliente OK |
|
} |
|
?>
|