mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
se modifica el calculo del factor ponderado y se añade orden al tamaño de papel
This commit is contained in:
@ -20,7 +20,7 @@ class PapelFormatoModel extends \App\Models\GoBaseModel
|
||||
5 => "t1.updated_at",
|
||||
];
|
||||
|
||||
protected $allowedFields = ["ancho", "alto"];
|
||||
protected $allowedFields = ["ancho", "alto", "orden_select"];
|
||||
protected $returnType = "App\Entities\Configuracion\PapelFormatoEntity";
|
||||
|
||||
protected $useTimestamps = true;
|
||||
@ -91,6 +91,6 @@ class PapelFormatoModel extends \App\Models\GoBaseModel
|
||||
->table($this->table . " t1")
|
||||
->select(
|
||||
"t1.id AS id, CONCAT(t1.ancho, ' x ', t1.alto) AS tamanio"
|
||||
)->where('is_deleted', 0)->get()->getResultObject();
|
||||
)->where('is_deleted', 0)->orderBy('orden_select', 'asc')->get()->getResultObject();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user