$i = 1;
//cabeceras del reporte
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(10, 5, "#", 1, 0, 'L', $fill);
$pdf->Cell(12, 5, "FOLIO", 1, 0, 'L', $fill);
$pdf->Cell(50, 5, "ARTICULO", 1, 0, 'L', $fill);
$pdf->Cell(30, 5, "FECHA DE VENTA", 1, 0, 'L', $fill);
$pdf->Cell(19, 5, "CANTIDAD", 1, 0, 'L', $fill);
$pdf->Ln();
$pdf->SetFont('Arial', '', 8);
//cuerpo del reporte
while ($l = mysql_fetch_array($lista, MYSQL_ASSOC)) {
    $pdf->Cell(10, 5, $i++, 'LR', 0, 'L', $fill);
    $pdf->Cell(12, 5, $l['folio_vta'], 'C', 0, 'L', $fill);
    $pdf->Cell(50, 5, $l['nombre'], 'LR', 0, 'L', $fill);
    $pdf->Cell(30, 5, $util->cambiaFFechaT($l['fecha_v']), 'LR', 0, 'L', $fill);
    $pdf->Cell(19, 5, $l['num'], 'LR', 0, 'C', $fill);
    $pdf->Ln();
    $fill = !$fill;
}
$pdf->Ln(15);
//reporte de entradas por fiado
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(80);
$pdf->Cell(30, 10, 'PAGOS DE CLIENTES', 0, 0, 'C');
$pagos = $ventas->listaPagosCltesRep();
$pdf->Ln();
$i = 1;
//cabeceras del reporte
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(10, 5, "#", 1, 0, 'L');