añadidas tarifas encuadernacion por horas para los cosidos

This commit is contained in:
Jaime Jiménez Ortega
2023-11-30 23:19:45 +01:00
parent f1eb8f6808
commit 67e12c8eff
24 changed files with 1369 additions and 131 deletions

View File

@ -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.
*