mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadidas tarifas encuadernacion por horas para los cosidos
This commit is contained in:
@ -265,6 +265,23 @@ class MaquinaModel extends \App\Models\GoBaseModel
|
||||
return $builder;
|
||||
}
|
||||
|
||||
public function getVelocidad($maquina_id){
|
||||
$builder = $this->db
|
||||
->table($this->table . " t1")
|
||||
->select(
|
||||
"t1.velocidad as velocidad"
|
||||
);
|
||||
$builder->where("t1.id", $maquina_id);
|
||||
|
||||
$resultObject = $builder->get()->getResultObject();
|
||||
|
||||
if(count($resultObject)>0)
|
||||
return $resultObject[0]->velocidad;
|
||||
else{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get resource data.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user