コード例 #1
0
@session_start();
include_once "../controller/cPagos.php";
include_once "../model/mAlertasAutomaticas.php";
$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') {