Viewing file: light.php (4.04 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$codigosec=26;
require('contar.php');
////////////////////////////////////////////////////////////////////
// Todos los sometidos a regimen especial
////////////////////////////////////////////////////////////////////
$smmlv = 515000; //Salario Mínimo Legal Vigente 2010
$smdlv = 17166;
////////////////////////////////////////////////////////////////////
$segsum = 0;
$con = 0;
$chk = isset($checkbox15);
if ($chk == true) {
$tari = $smmlv * 0.048;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox15;
$con = $con + 1;
}
$chk = isset($checkbox16);
if ($chk == true) {
$tari = $smmlv * 0.097;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox16;
$con = $con + 1;
}
$chk = isset($checkbox17);
if ($chk == true) {
$tari = $smmlv * 0.194;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox17;
$con = $con + 1;
}
$chk = isset($checkbox18);
if ($chk == true) {
$tari = $smmlv * 0.388;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox18;
$con = $con + 1;
}
$chk = isset($checkbox19);
if ($chk == true) {
$tari = $smmlv * 0.776;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox19;
$con = $con + 1;
}
$chk = isset($checkbox20);
if ($chk == true) {
$tari = $smmlv * 1;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox20;
$con = $con + 1;
}
$chk = isset($checkbox21);
if ($chk == true) {
$tari = $smmlv * 0.032;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox21;
$con = $con + 1;
}
$chk = isset($checkbox22);
if ($chk == true) {
$tari = $smmlv * 0.28;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox22;
$con = $con + 1;
}
$chk = isset($checkbox22a);
if ($chk == true) {
$tari = $smmlv * 0.28;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox22a;
$con = $con + 1;
}
$chk = isset($checkbox22b);
if ($chk == true) {
$tari = $smmlv * 0.28;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox22b;
$con = $con + 1;
}
$chk = isset($checkbox23);
if ($chk == true) {
$tari = $smmlv * 0.097;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox23;
$con = $con + 1;
}
$chk = isset($checkbox24);
if ($chk == true) {
$tari = $smmlv * 0.064;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox24;
$con = $con + 1;
}
$chk = isset($checkbox25);
if ($chk == true) {
$tari = $smmlv * 0.032;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox25;
$con = $con + 1;
}
$chk = isset($checkbox26);
if ($chk == true) {
$tari = $smdlv * 1.46;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox26;
$con = $con + 1;
}
$chk = isset($checkbox27);
if ($chk == true) {
$tari = $smdlv * 0.1509;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox27;
$con = $con + 1;
}
$chk = isset($checkbox28);
if ($chk == true) {
$tari = $smmlv * 0.20;
$tari = intval($tari);
$res[$con] = $tari;
$segsum = $segsum + $tari;
$nom[$con] = $checkbox28;
$con = $con + 1;
}
// dice que si si hay tramites inicie la sumatoria, acopie los nombres y llame al que crea el recibo.
if ($con >= 1) {
$fin = $segsum;
$noms = "";
$inio = 0;
foreach($res as $v) {
$noms = $noms . "/" . $nom[$inio];
$inio++;
}
require('reciboval.php');
}else{
echo "No hay trámites para calcular, esto significa que no hay suficientes parámetros para generar un recibo válido";
//VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID,</strong> ";
}
?>
|