mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Faltan test sobre tarifas encuadernación
This commit is contained in:
@ -99,7 +99,7 @@ class TarifaEncuadernacionTiradaModel extends \App\Models\GoBaseModel
|
||||
->groupEnd();
|
||||
}
|
||||
|
||||
public function checkIntervals($data = [], $id_linea = null, $tarifa_encuadernacion_id = null){
|
||||
public function checkIntervals($data = [], $id_tirada = null, $tarifa_encuadernacion_id = null){
|
||||
|
||||
helper('general');
|
||||
|
||||
@ -112,12 +112,13 @@ class TarifaEncuadernacionTiradaModel extends \App\Models\GoBaseModel
|
||||
->select("id, tirada_min, tirada_max")
|
||||
->where("is_deleted", 0)
|
||||
->where("tarifa_encuadernacion_id", $tarifa_encuadernacion_id)
|
||||
->where("proveedor_id", $data["proveedor_id"])
|
||||
->get()->getResultObject();
|
||||
|
||||
|
||||
foreach ($rows as $row) {
|
||||
if (!is_null($id_linea)){
|
||||
if($row->id == $id_linea){
|
||||
if (!is_null($id_tirada)){
|
||||
if($row->id == $id_tirada){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user