mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
terminado plantillas
This commit is contained in:
@ -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){
|
||||
|
||||
Reference in New Issue
Block a user