$pagos = new cPagos(); $alert = new AlertasMan(); // $m=$pagos->regPagAdmin($_POST['asientolastpago'],$_POST['monto'],$_POST['banco'], $_POST['sucursal'], $_POST['ctaBanco'], $_POST['moneda'],$_POST['insmone'], $_POST['paispago'], $_POST['hrPago'], $_POST['ficha'], 1, $_POST['observaciones'],$_POST['imoratorio'],$_POST['ipago'],$_POST['cappag'],$_POST['igtscobr'],$_POST['imanejocta']); // print_r($_POST); $m = $pagos->regPagAdmin($_POST['asientolastpago'], $_POST['monto'], $_POST['banco'], $_POST['sucursal'], $_POST['ctaBanco'], $_POST['moneda'], $_POST['insmone'], $_POST['paispago'], $_POST['hrPago'], $_POST['ficha'], 1, $_POST['observaciones'], $_POST['imoratorio'], $_POST['ipago'], $_POST['cappag'], $_POST['igtscobr'], $_POST['imanejocta']); /*-----ALERTAS---------------*/ $re = $alert->alertaInconsistenciasPago($_POST['monto'], $_POST['ctaBanco'], $_POST['ctaBanco'], 1, $_POST['asientolastpago'], $_POST['insmone']); $gh = $alert->alertaMaxMovs($_POST['asientolastpago'], 1, $_POST['insmone'], $_POST['foliocontrato']); $mm = $alert->alertaMontoMensual($_POST['asientolastpago'], 1, $_POST['insmone'], $_POST['foliocontrato']); $fp = $alert->alertaFormaPagoDistinta($_POST['asientolastpago'], $_POST['insmone'], $_POST['monto'], $_POST['moneda'], $_POST['ficha']); $mone = $alert->alertaMonedaDistinta($_POST['asientolastpago'], $_POST['insmone'], $_POST['monto'], $_POST['moneda'], $_POST['ficha']); $opequinidols = $alert->alertaOpe500Dls($_POST['idClte'], $_POST['foliocontrato'], 1); $opediez = $alert->alertaOpe10milDls($_POST['idClte'], $_POST['foliocontrato'], 1); $opetres = $alert->alertaOpe300mil($_POST['idClte'], $_POST['foliocontrato'], 1); $opequini = $alert->alertaOpe500mil($_POST['idClte'], $_POST['foliocontrato'], 1); $opemillon = $alert->alertaOpe1millon($_POST['idClte'], $_POST['foliocontrato'], 1); if ($opequinidols == '0' and $mone == '0' and $re == '0' and $gh == '0' and $mm == '0' and $opediez == '0' and $opetres == '0' and $opequini == '0' && $opemillon == '0' && $fp == '0') { echo "0"; } else { $i = 1; if ($re != '0') { echo $i . "->" . $re; echo "<br />"; echo "<br />"; $i++; } if ($gh != '0') { echo $i . "->" . $gh; echo "<br />"; echo "<br />"; $i++;
<?php include_once "../model/mAlertasAutomaticas.php"; $alertas = new AlertasMan(); $opediez = $alertas->alertaOpe10milDls($_POST['id'], $_POST['contrato'], 1); $opetres = $alertas->alertaOpe300mil($_POST['id'], $_POST['contrato'], 1); $opequini = $alertas->alertaOpe500mil($_POST['id'], $_POST['contrato'], 1); $opemillon = $alertas->alertaOpe1millon($_POST['id'], $_POST['contrato'], 1); if ($opediez == 0 && $opetres == 0 && $opequini == 0 && $opemillon == 0) { echo "0"; } else { echo $opediez . "<br />" . $opetres . "<br />" . $opequini . "<br />" . $opemillon; }