public ImpresorRemito(Venta venta) { this.venta = venta; detalles = new LinkedList<DetalleVentaDecorator>(); // Carga los detalles apropiadamente. for (DetalleVenta detalle : venta.getDetalles()) { DetalleVentaDecorator dvd = new DetalleVentaDecorator(); dvd.setCantidad(detalle.getCantidad()); dvd.setCodigo(detalle.getProducto().getCodigo()); String marcaDesc = detalle.getProducto().getDescripcion() + " - " + detalle.getCalidad().getCalidad().getNombre(); dvd.setDescripcion(marcaDesc); dvd.setUm(detalle.getProducto().getProductoUM().getNombre()); dvd.setUnitario(detalle.getImporteUnitario()); detalles.add(dvd); } }