mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadido footer de modificaciones en presupuesto
This commit is contained in:
@ -617,6 +617,11 @@ class Presupuestoadmin extends \App\Controllers\BaseResourceController
|
|||||||
|
|
||||||
$data['resumen']['iva_reducido'] = $presupuesto->iva_reducido;
|
$data['resumen']['iva_reducido'] = $presupuesto->iva_reducido;
|
||||||
|
|
||||||
|
$data['created_by'] = model('App\Models\UserModel')->getFullName($presupuesto->user_created_id);
|
||||||
|
$data['updated_by'] = model('App\Models\UserModel')->getFullName($presupuesto->user_update_id);
|
||||||
|
$data['created_at'] = date(' H:i d/m/Y', strtotime($presupuesto->created_at));
|
||||||
|
$data['updated_at'] = date(' H:i d/m/Y', strtotime($presupuesto->updated_at));
|
||||||
|
|
||||||
if ($presupuesto->estado_id == 2) {
|
if ($presupuesto->estado_id == 2) {
|
||||||
$data['resumen']['total_aceptado'] = $presupuesto->total_aceptado;
|
$data['resumen']['total_aceptado'] = $presupuesto->total_aceptado;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -264,6 +264,9 @@ return [
|
|||||||
|
|
||||||
'totalAceptado' => 'Total aceptado',
|
'totalAceptado' => 'Total aceptado',
|
||||||
|
|
||||||
|
'created_by_at' => 'Creado: ',
|
||||||
|
'updated_by_at' => 'Actualizado: ',
|
||||||
|
|
||||||
// Placeholders
|
// Placeholders
|
||||||
'formatoLibro' => "Formato libro",
|
'formatoLibro' => "Formato libro",
|
||||||
'selectCliente' => "Seleccione cliente",
|
'selectCliente' => "Seleccione cliente",
|
||||||
|
|||||||
@ -69,6 +69,23 @@
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?= anchor(route_to("presupuestoAdminList", $tipo_impresion_id), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start",]) ?>
|
<?= anchor(route_to("presupuestoAdminList", $tipo_impresion_id), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start",]) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="container-fluid d-flex flex-md-row flex-column justify-content-between align-items-md-center gap-1 container-p-x py-3">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<p>
|
||||||
|
<strong><?= lang("Presupuestos.created_by_at") ?></strong>
|
||||||
|
<span id="created_by"></span>,
|
||||||
|
<span id="created_at"></span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<p>
|
||||||
|
<strong><?= lang("Presupuestos.updated_by_at") ?></strong>
|
||||||
|
<span id="updated_by"></span>,
|
||||||
|
<span id="updated_at_footer"></span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div><!--//.col -->
|
</div><!--//.col -->
|
||||||
|
|||||||
@ -370,6 +370,11 @@ class PresupuestoAdminEdit {
|
|||||||
self.tipo_impresion.val(response.data.tipo_impresion);
|
self.tipo_impresion.val(response.data.tipo_impresion);
|
||||||
self.POD.val(response.data.POD);
|
self.POD.val(response.data.POD);
|
||||||
|
|
||||||
|
$('#created_by').html(response.data.created_by);
|
||||||
|
$('#updated_by').html(response.data.updated_by);
|
||||||
|
$('#created_at').html(response.data.created_at);
|
||||||
|
$('#updated_at_footer').html(response.data.updated_at);
|
||||||
|
|
||||||
self.calcularPresupuesto = false;
|
self.calcularPresupuesto = false;
|
||||||
|
|
||||||
self.datosGenerales.cargarDatos(response.data.datosGenerales);
|
self.datosGenerales.cargarDatos(response.data.datosGenerales);
|
||||||
@ -392,6 +397,7 @@ class PresupuestoAdminEdit {
|
|||||||
self.tiradasAlternativas.cargar(response.data.tiradasAlternativas);
|
self.tiradasAlternativas.cargar(response.data.tiradasAlternativas);
|
||||||
|
|
||||||
self.resumen.cargar(response.data.resumen);
|
self.resumen.cargar(response.data.resumen);
|
||||||
|
|
||||||
self.datosLibro.calcular_mermas();
|
self.datosLibro.calcular_mermas();
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user