mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadido generar factura desde pedido
This commit is contained in:
@ -120,8 +120,7 @@ $('#addNewPedidoImpresion').on('click', function(){
|
||||
// se ajustan el ancho de las columnas
|
||||
$('#pedidoImpresion').val(null).trigger('change');
|
||||
// Se actualiza la tabla de lineas de factura
|
||||
tableLineas.clearPipeline();
|
||||
$('#tableOfLineasFactura').DataTable().columns.adjust().draw();
|
||||
$('#tableOfLineasFactura').DataTable().clearPipeline().draw();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@ -17,12 +17,12 @@
|
||||
<th>id</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><?= lang('Facturas.unidades') ?></th>
|
||||
<th><?= lang('Facturas.concepto') ?></th>
|
||||
<th><?= lang('Facturas.precioUnidad') ?></th>
|
||||
<th><?= lang('Facturas.iva') ?></th>
|
||||
<th><?= lang('Facturas.subtotal') ?></th>
|
||||
<th ></th>
|
||||
<th style="width: 10%;"><?= lang('Facturas.unidades') ?></th>
|
||||
<th ><?= lang('Facturas.concepto') ?></th>
|
||||
<th style="width: 10%;"><?= lang('Facturas.precioUnidad') ?></th>
|
||||
<th style="width: 10%;"><?= lang('Facturas.iva') ?></th>
|
||||
<th style="width: 10%;"><?= lang('Facturas.subtotal') ?></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@ -395,6 +395,10 @@ var tableLineas = $('#tableOfLineasFactura').DataTable({
|
||||
}
|
||||
|
||||
],
|
||||
drawCallback: function() {
|
||||
$(this.api().table().container()).find('table').css('width', '100%');
|
||||
this.api().columns.adjust();
|
||||
},
|
||||
footerCallback: function (row, data, start, end, display) {
|
||||
updateFooterLineas(this.api());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user