Ejemplo n.º 1
0
$pdf->Ln(10);
require_once '../model/classVenta.php';
require_once '../model/classCheque.php';
$fecha1 = Date("Y") . "-" . $_GET['date'] . "-1";
$fecha2 = Date("Y") . "-" . $_GET['date'] . "-31";
$fecha = $_GET['date'];
$objVenta = new Venta();
$objVenta->selectTotalMes($fecha1, $fecha2);
$total;
foreach ((array) $objVenta as $key) {
    foreach ($key as $key2) {
        $total = $key2['SUM(ven_valor_neto)'];
    }
}
$objCheque = new Cheque();
$objCheque->selectTotalChequeMes($fecha1, $fecha2);
$totalCheque;
foreach ((array) $objCheque as $key) {
    foreach ($key as $key2) {
        $totalCheque = $key2['SUM(che_monto)'];
    }
}
$selectNumeroCheque;
$pdf->Cell(95, 10, utf8_decode('Fecha'), 1, 0, 'C');
$pdf->Cell(95, 10, utf8_decode($fecha1), 1, 0, 'C');
$pdf->Ln(20);
$pdf->Cell(95, 10, utf8_decode('Monto Efectivo'), 1, 0, 'C');
$pdf->Cell(95, 10, utf8_decode(number_format($total - $totalCheque, 0, ',', '.')), 1, 0, 'C');
$pdf->Ln(10);
$pdf->Cell(95, 10, utf8_decode('Monto Cheque'), 1, 0, 'C');
$pdf->Cell(95, 10, utf8_decode(number_format($totalCheque, 0, ',', '.')), 1, 0, 'C');