Exemplo n.º 1
0
        atenderPedido($_GET["idPedido"]);
        header("Location: ../View/Pedidos/ListaPedidos.php?rpta=boleta&idPedido=" . $_GET["idPedido"]);
    }
}
if ($submit == "boleta") {
    if (isset($_GET["idPedido"])) {
        $idPedido = $_GET["idPedido"];
        $pedido = getVwPedido($idPedido);
        $detallePedidos = getVwDetallePedidoByIdPedido($_GET["idPedido"]);
        ob_start();
        $reporte = new Reporte();
        $reporte->setFecha($pedido["fecha"]);
        $reporte->setTitulo("Boleta " . $pedido["idPedido"]);
        $reporte->AddPage();
        // Generarndo Boleta
        $reporte->Ln(20);
        $reporte->SetFont('helvetica', 'B', 6);
        $reporte->Cell(20, 5, "ID:", 0, 0, 'B');
        $reporte->SetFont('helvetica', '', 6);
        $reporte->Cell(20, 5, $pedido["idPedido"], 0, 0, 'C');
        $reporte->Ln(5);
        $reporte->SetFont('helvetica', 'B', 6);
        $reporte->Cell(20, 5, "Cliente:", 0, 0, 'B');
        $reporte->SetFont('helvetica', '', 6);
        $reporte->Cell(20, 5, $pedido["cliente"], 0, 0, 'C');
        $reporte->Ln(5);
        $reporte->SetFont('helvetica', 'B', 6);
        $reporte->Cell(20, 5, "Mesa:", 0, 0, 'B');
        $reporte->SetFont('helvetica', '', 6);
        $reporte->Cell(20, 5, $pedido["mesa"], 0, 0, 'C');
        $reporte->Ln(5);