コード例 #1
0
$pdf->Cell(1.2, 0.8, $dia, 0, 0, 'L');
$pdf->Cell(1.2, 0.8, $mes_numero, 0, 0, 'L');
$pdf->Cell(1.2, 0.8, $anio, 0, 0, 'L');
$pdf->Cell(1.2, 0.8, '', 0, 0, 'L');
$pdf->Ln(0.8);
$pdf->Cell(9, 0.1, '', 0, 0, 'L');
$pdf->Ln(0.1);
$pdf->Cell(1.7, 0.7, '', 0, 0, 'L');
$pdf->Cell(7.3, 0.7, $cliente_nombre, 0, 0, 'L');
$pdf->Ln(0.7);
$pdf->Cell(9, 0.1, '', 0, 0, 'L');
$pdf->Ln(0.1);
$pdf->Cell(9, 0.7, '', 0, 0, 'L');
$pdf->Ln(0.7);
$j = '0';
$rsd = $venta->detalle_ventas_listar($_REQUEST['venta']);
while ($campod = mysql_fetch_array($rsd)) {
    $producto = $campod['pro_descripcion'];
    $cantidad = $campod['ven_totalcantidad'];
    $precio = $campod['ven_preciototal'];
    $pdf->Cell(1.2, 0.5, number_format($cantidad, 0), 0, 0, 'C');
    //$cantidad. ' '.$unidad
    $pdf->Cell(4.6, 0.5, $producto, 0, 0, 'L');
    $pdf->Cell(1.4, 0.5, '', 0, 0, 'C');
    $pdf->Cell(1.8, 0.5, 'S/. ' . $precio, 0, 0, 'C');
    $pdf->Ln(0.5);
    $total = $total + $precio;
    $j = $j + 1;
}
//$subtotal=$total/1.19;
//$igv=$total-$subtotal;
コード例 #2
0
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
			<tr>
			  <td>&nbsp;</td>
			  <td>&nbsp;</td>
			  <td colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="55%" class="fondonegro">Producto</td>
                  <td width="15%" align="center" class="fondonegro">Cantidad</td>
                  <td width="16%" align="center" class="fondonegro">Importe</td>
                  <td width="14%">&nbsp;</td>
                </tr>
        <?php 
                $rsd = $venta->detalle_ventas_listar($campoc['ven_id']);
                if ($rsd) {
                    $suma_importe = 0;
                    while ($campod = mysql_fetch_array($rsd)) {
                        ?>
                <tr>
                  <td><?php 
                        echo $campod['pro_descripcion'];
                        ?>
</td>
                  <td align="center"><?php 
                        echo $campod['ven_totalcantidad'];
                        ?>
</td>
                  <td align="center">S/. <?php 
                        echo $campod['ven_preciototal'];