Ejemplo n.º 1
0
            echo "<td style='text-align:right; border: 1px solid black; border-collapse: collapse;'> \$ " . formatearNumero($parcial) . "</td>";
            $parcialganancia = $porccomision * $parcial / 100;
            echo "<td style='text-align:right; border: 1px solid black; border-collapse: collapse;'> \$ " . formatearNumero($parcialganancia) . "</td>";
            echo "</tr>";
            $total = $total + $parcial;
            $totalganancia = $totalganancia + $parcialganancia;
            $parcial = 0;
            $parcialganancia = 0;
        }
        echo "<tr style='border: 1px solid black; border-collapse: collapse;' >";
        echo "<td style='border: 1px solid black; border-collapse: collapse;' >Total Ventas:</td>";
        echo "<td  style='text-align:center; border: 1px solid black; border-collapse: collapse;' colspan='6'>\$" . formatearNumero($total) . "</td>";
        echo "</tr>";
        echo "<tr style='border: 1px solid black; border-collapse: collapse;' >";
        echo "<td style='border: 1px solid black; border-collapse: collapse;' >Total Ganancia Manos de Oro:</td>";
        echo "<td  style='text-align:center; border: 1px solid black; border-collapse: collapse;' colspan='6'>\$" . formatearNumero($totalganancia) . "</td>";
        echo "</tr>";
        ?>
					</table>
</center>

</div>
<center>
					<a href="admon.php">Volver al inicio</a>
</center>
				</body>
			</html>
			<?php 
    }
} else {
    ?>
         $i = $folios_cursos[3] + 1;
         $folios_cursos[3] = $i;
         break;
     case 21:
         $i = $folios_cursos[4] + 1;
         $folios_cursos[4] = $i;
         break;
     case 22:
         $i = $folios_cursos[5] + 1;
         $folios_cursos[5] = $i;
         break;
     default:
         $i = 0;
         break;
 }
 $folio_formateado = formatearNumero($i);
 $matricula = obtener_prefijomatricula($curso);
 $folio = obtener_sufijofolio($curso);
 echo "<td>" . $row->matricula . "</td>";
 echo "<td>" . $row->folio . "</td>";
 echo "<td>" . $row->estadopago . "</td>";
 echo "<td>" . $row->impreso . "</td>";
 echo "<td>" . $row->bajaDef . "</td>";
 echo "<td>" . truncateFloat($CalT1 / 32 * 100, 2) . "</td>";
 echo "<td>" . truncateFloat($CalT2 / 32 * 100, 2) . "</td>";
 echo "<td>" . truncateFloat($CalT3 / 36 * 100, 2) . "</td>";
 echo "<td>" . $CalFinal . "</td>";
 echo "<td>" . $pertenece_remedial . "</td>";
 echo "<td>" . $cal_remedial . "</td>";
 $pts_cal = $cal_remedial * 20 / 100;
 echo "<td>" . $pts_cal . "</td>";