Iniciada implementacion de recuperacion de historicos erp antiguo

This commit is contained in:
Ignacio Martinez Navajas
2025-06-03 11:24:44 +02:00
parent 2c711c526b
commit 84693d5c6c
6 changed files with 208 additions and 25 deletions

View File

@ -0,0 +1,58 @@
<div class="accordion accordion-bordered mt-3" id="accordionPedidos">
<div class="card accordion-item">
<h2 class="accordion-header" id="headingPedidos">
<button type="button" class="accordion-button collapsed" data-bs-toggle="collapse"
data-bs-target="#collapsePedidos" aria-expanded="false" aria-controls="collapsePedidos">
<h5 class="mb-0">Pedidos</h5>
</button>
</h2>
<div id="collapsePedidos" class="accordion-collapse collapse" data-bs-parent="#accordionPedidos">
<div class="accordion-body">
<!-- Campo oculto para JS -->
<input type="hidden" id="catalogo_id" value="<?= esc($catalogoLibrosEntity->id ?? '') ?>">
<!--
<div class="row">
<div class="col-12 mb-4">
<h5>Pedidos - ERP 2.0</h5>
<table id="tablaPedidosERP2" class="table table-striped" style="width:100%">
<thead>
<tr>
<th>ID</th>
<th>Fecha</th>
<th>Título</th>
<th> Páginas</th>
<th>Tirada</th>
<th>Total</th>
<th>Estado</th>
<th>Acciones</th>
</tr>
</thead>
</table>
</div>
-->
<div class="col-12 mb-4">
<h5>Pedidos - Antiguo ERP</h5>
<table id="tablaPedidosAntiguos" class="table table-striped table-hover" style="width:100%">
<thead>
<tr>
<th>ID</th>
<th>Fecha</th>
<th>Título</th>
<th> Páginas</th>
<th>Tirada</th>
<th>Total</th>
<th>Estado</th>
<th>Acciones</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -1,3 +1,4 @@
<?= $this->include('themes/_commonPartialsBs/datatables') ?>
<?= $this->include("themes/_commonPartialsBs/select2bs5") ?>
<?= $this->include("themes/_commonPartialsBs/sweetalert") ?>
<?= $this->extend('themes/vuexy/main/defaultlayout') ?>
@ -19,6 +20,7 @@
<?= view("themes/vuexy/form/catalogo/_datosGeneralesFormItems") ?>
<?= view("themes/vuexy/form/catalogo/_otrosDatosFormItems") ?>
<?= view("themes/vuexy/form/catalogo/_configuracionLibroFormItems") ?>
<?= view("themes/vuexy/form/catalogo/_historicoPedidos") ?>
<?= view("themes/vuexy/form/catalogo/_trackingFormItems") ?>
</div>
<!-- /.card-body -->
@ -39,10 +41,21 @@
<?= $this->section('css') ?>
<link rel="stylesheet" href="<?= site_url('themes/vuexy/css/safekat.css') ?>">
<link rel="stylesheet" href="<?= site_url('themes/vuexy/css/safekat.css') ?>">
<?= $this->endSection() ?>
<?= $this->section("additionalExternalJs") ?>
<script type="module" src="<?= site_url('assets/js/safekat/pages/catalogo/catalogo.js?' . 'token' . '=' . (csrf_token() ?? "token")) ?>"></script>
<script
src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/buttons/dataTables.buttons.min.js") ?>"></script>
<script
src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/buttons/buttons.bootstrap5.min.js") ?>"></script>
<script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/buttons/buttons.html5.min.js") ?>"></script>
<script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/buttons/buttons.print.min.js") ?>"></script>
<script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/jszip/jszip.min.js") ?>"></script>
<script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/pdfmake/pdfmake.min.js") ?>"
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/pdfmake/vfs_fonts.js") ?>"></script>
<script type="module"
src="<?= site_url('assets/js/safekat/pages/catalogo/catalogo.js?' . 'token' . '=' . (csrf_token() ?? "token")) ?>"></script>
<?= $this->endSection() ?>