$pdf->Cell(20, 10, utf8_decode('Cantidad'), 1, 0, 'C'); $pdf->Cell(25, 10, utf8_decode('P. Unitario'), 1, 0, 'C'); $pdf->Cell(20, 10, utf8_decode('Total'), 1, 0, 'C'); $pdf->Ln(); $objVenta->selectProductVenta($_GET['id']); foreach ((array) $objVenta as $key) { foreach ($key as $key2 => $value) { $pdf->Cell(35, 10, utf8_decode($value['pro_codigo']), 1, 0); $pdf->Cell(95, 10, utf8_decode($value['pro_descripcion']), 1, 0); $pdf->Cell(20, 10, utf8_decode($value['det_cantidad']), 1, 0); $pdf->Cell(25, 10, utf8_decode($value['det_valor']), 1, 0); $pdf->Cell(20, 10, utf8_decode($value['det_cantidad'] * $value['det_valor']), 1, 0); $pdf->Ln(); } } $objVenta->selectTotalVenta($_GET['id']); foreach ((array) $objVenta as $key) { foreach ($key as $key2 => $value) { $pdf->SetY(250); $pdf->Cell(40, 5, 'Fecha Entrega: '); $pdf->Cell(0, 5, $value['ven_fecha']); $pdf->Ln(10); $pdf->Cell(40, 5, utf8_decode('Total:'), 0, 0); $pdf->Cell(40, 5, $value['ven_valor_neto'], 0, 0); $pdf->Ln(10); $pdf->Cell(80, 5, 'Firma Cliente: '); $pdf->Cell(40, 5, 'Firma Vendedor: '); } } /*$pdf->TablaBasica(); */