rehecho papeles impresion. Lista de tarifas a 50 elementos por defecto

This commit is contained in:
Jaime Jimenez
2023-07-28 17:26:16 +02:00
parent fa27f25d10
commit 9d6e3822e8
21 changed files with 678 additions and 449 deletions

View File

@ -252,6 +252,19 @@ class MaquinaModel extends \App\Models\GoBaseModel
return $result;
}
public function getIdMaquinasForPapelImpresion($papel_impresion_id, $rotativa, $ancho, $alto){
$builder = $this->db
->table($this->table . " t1")
->select(
"'".$papel_impresion_id."'". " as papel_impresion_id, t1.id AS maquina_id, '0' as active"
);
$builder->where("t1.is_rotativa", $rotativa);
$builder->where("t1.ancho >", $ancho);
$builder->where("t1.alto >", $alto);
return $builder;
}
/**
* Get resource data.
*