mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'dev/preview-tapa-dura' into 'main'
Añadido preview de cubiertas tapa dura y añadida cota de alto de libro en tabla blanda See merge request jjimenez/safekat!151
This commit is contained in:
@ -33,6 +33,22 @@ class TipoPresupuestoModel extends \App\Models\GoBaseModel
|
||||
return null;
|
||||
}
|
||||
|
||||
public function get_isTapaDura(int $id){
|
||||
|
||||
$builder = $this->db
|
||||
->table($this->table . " t1")
|
||||
->select("t1.is_tapa_dura AS is_tapa_dura")
|
||||
->where('t1.id', $id)
|
||||
->where('t1.is_deleted', 0);
|
||||
|
||||
$result = $builder->get()->getResultObject();
|
||||
if(count($result)>0){
|
||||
return $result[0]->is_tapa_dura;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user