示例#1
0
" name="botAgr<?php 
echo $i;
?>
" value="Agregar" onclick="pUIAgregarDetalles(this);" />
                            </td>
                            <td>
                            </td>
                        </tr>
                    </tbody>
                    <tfoot>
                        <tr class="">
                            <td></td>
                            <td>SUBTOTAL:</td>
                            <td>
                                <?php 
printf("%01.2f", $oFactura->getSubtotal());
?>
&nbsp;&euro;
                            </td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr class="">
                            <td></td>
                            <td>IVA:</td>
                            <td>
                                <?php 
printf("%01.2f", $oFactura->getIva());
?>
&nbsp;&euro;
                            </td>
示例#2
0
 function Totales(CFactura $oFactura)
 {
     $this->SetFont('Arial', 'B', 12);
     $arTitulos[0] = 'Subtotal: ';
     $arTitulos[1] = 'Iva: ';
     $arTitulos[2] = 'Total: ';
     //Anchuras de las columnas
     $w = array(150, 35);
     //Subtotal
     $this->Cell($w[0], 6, $arTitulos[0], 'LR', 0, 'R');
     $this->Cell($w[1], 6, number_format($oFactura->getSubtotal(), 2, ',', '') . ' ' . chr(128), 'LR', 0, 'R');
     $this->Ln();
     //Iva
     $this->Cell($w[0], 6, $arTitulos[1], 'LR', 0, 'R');
     $this->Cell($w[1], 6, number_format($oFactura->getIva(), 2, ',', '') . ' ' . chr(128), 'LR', 0, 'R');
     $this->Ln();
     //Total
     $this->Cell($w[0], 6, $arTitulos[2], 'LR', 0, 'R');
     $this->Cell($w[1], 6, number_format($oFactura->getTotal(), 2, ',', '') . ' ' . chr(128), 'LR', 0, 'R');
     $this->Ln();
     //Línea de cierre
     $this->Cell(array_sum($w), 0, '', 'T');
 }