terminado plantillas

This commit is contained in:
Jaime Jiménez
2024-01-02 21:01:42 +01:00
parent 0abdb7efac
commit a54838d468
12 changed files with 250 additions and 37 deletions

View File

@ -119,12 +119,21 @@ class ClientePreciosModel extends \App\Models\GoBaseModel
->update();
}
function set_plantilla_id($cliente_id = 0, $plantilla_id = null){
$this->db
->table($this->table . " t1")
->where('cliente_id', $cliente_id)
->set('plantilla_id', $plantilla_id)
->update();
}
function delete_values($cliente_id = 0){
$this->db
->table($this->table . " t1")
->where('cliente_id', $cliente_id)
->delete();
->set('is_deleted', 1)
->update();
}
function copy_from_plantilla($cliente_id = 0, $plantilla_id = 0){