<td>IVA:</td> <td> <?php printf("%01.2f", $oFactura->getIva()); ?> € </td> <td></td> <td></td> </tr> <tr class=""> <td></td> <td>TOTAL:</td> <td> <?php printf("%01.2f", $oFactura->getTotal()); ?> € </td> <td></td> <td></td> </tr> </tfoot> </table> </div> <dl class="clsAuto"> <dt><label>NOTAS:</label></dt> <dd> <textarea id="txaNotas" name="txaNotas" rows="" cols=""><?php echo $oFactura->getNotas(); ?>
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'); }