trabajando en preciopliego

This commit is contained in:
Jaime Jiménez
2023-09-25 13:47:49 +02:00
parent d9afa9a1ef
commit 089df469e7
5 changed files with 232 additions and 33 deletions

View File

@ -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');