mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadida migracion
This commit is contained in:
@ -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');
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -87,6 +87,7 @@ class PresupuestoCliente {
|
|||||||
this.btnPrev.on('click', this.#prevtStep.bind(this));
|
this.btnPrev.on('click', this.#prevtStep.bind(this));
|
||||||
this.btnSave.on('click', this.#savePresupuesto.bind(this));
|
this.btnSave.on('click', this.#savePresupuesto.bind(this));
|
||||||
this.btnConfirm.on('click', this.#confirmPresupuesto.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));
|
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() {
|
#confirmPresupuesto() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user