mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
acabados todos los servicios de presupuesto
This commit is contained in:
@ -108,6 +108,7 @@ class PresupuestoPreimpresionesModel extends \App\Models\GoBaseModel
|
||||
$builder->where('tarifa_preimpresion_id', $tarifa->tarifa_id);
|
||||
$result = $builder->get()->getResultObject();
|
||||
if(count($result)>0){
|
||||
|
||||
$this->db
|
||||
->table($this->table . " t1")
|
||||
->where('presupuesto_id', $presupuesto_id)
|
||||
|
||||
@ -156,7 +156,7 @@ class TarifaEncuadernacionModel extends \App\Models\GoBaseModel
|
||||
|
||||
$builder->where('t1.id =', $tarifa_id);
|
||||
$builder->where('t2.tirada_min <=', $tirada);
|
||||
$builder->where('t2.tirada_max >', $tirada);
|
||||
$builder->where('t2.tirada_max >=', $tirada);
|
||||
$builder->where('t3.paginas_libro_min <=', $paginas);
|
||||
$builder->where('t3.paginas_libro_max >', $paginas);
|
||||
$builder->where('t4.ancho_min <=', $ancho);
|
||||
|
||||
@ -126,7 +126,7 @@ class TarifaManipuladoModel extends \App\Models\GoBaseModel
|
||||
|
||||
$builder->where('t1.id =', $tarifa_id);
|
||||
$builder->where('t2.tirada_min <=', $tirada);
|
||||
$builder->where('t2.tirada_max >', $tirada);
|
||||
$builder->where('t2.tirada_max >=', $tirada);
|
||||
|
||||
return $builder->get()->getResultObject();
|
||||
}
|
||||
|
||||
@ -127,7 +127,7 @@ class TarifaacabadoModel extends \App\Models\GoBaseModel
|
||||
|
||||
$builder->where('t1.id =', $tarifa_id);
|
||||
$builder->where('t2.tirada_min <=', $tirada);
|
||||
$builder->where('t2.tirada_max >', $tirada);
|
||||
$builder->where('t2.tirada_max >=', $tirada);
|
||||
|
||||
return $builder->get()->getResultObject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user