mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando en preciopliego
This commit is contained in:
@ -86,6 +86,23 @@ class MaquinasCallesModel extends \App\Models\GoBaseModel
|
||||
->groupEnd();
|
||||
}
|
||||
|
||||
public function getCallesForMaquina($maquina_id=-1, $num_formas = 0)
|
||||
{
|
||||
$builder = $this->db
|
||||
->table($this->table . " t1")
|
||||
->select(
|
||||
"t1.formas AS formas,
|
||||
t1.internas AS internas, t1.externas AS externas,"
|
||||
);
|
||||
|
||||
//JJO
|
||||
$builder->where('t1.maquina_id', $maquina_id);
|
||||
$builder->where('t1.formas', $num_formas);
|
||||
$builder->where("t1.is_deleted", 0);
|
||||
|
||||
return $builder->get()->getResultObject();
|
||||
}
|
||||
|
||||
public function checkDuplicatedFormas($data = [], $id = null){
|
||||
|
||||
helper('general');
|
||||
|
||||
Reference in New Issue
Block a user