añadida migracion

This commit is contained in:
2024-11-13 22:16:31 +01:00
parent d9e5f1c6df
commit 33db277af2
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,27 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class CheckWebClientesPapeles extends Migration
{
public function up()
{
$fields = [
'show_in_client' => [
'type' => 'TINYINT',
'constraint' => 1,
'null' => false,
'default' => 0,
],
];
$this->forge->addColumn('lg_papel_impresion', $fields);
}
public function down()
{
$this->forge->dropColumn('lg_papel_impresion', 'show_in_client');
}
}

View File

@ -87,6 +87,7 @@ class PresupuestoCliente {
this.btnPrev.on('click', this.#prevtStep.bind(this));
this.btnSave.on('click', this.#savePresupuesto.bind(this));
this.btnConfirm.on('click', this.#confirmPresupuesto.bind(this));
this.btnPrint.on('click', this.#printPresupuesto.bind(this));
this.titulosMenu.on('click', this.#handleTitulosMenu.bind(this));
@ -379,6 +380,10 @@ class PresupuestoCliente {
}
}
#printPresupuesto(){
window.open('/printpresupuestos/generar/' + window.location.href.split("/").pop(), '_blank');
}
#confirmPresupuesto() {