se modifica el calculo del factor ponderado y se añade orden al tamaño de papel

This commit is contained in:
Jaime Jiménez
2024-03-14 18:27:40 +01:00
parent da2a532336
commit 8eac04292d
3 changed files with 13 additions and 3 deletions

View File

@ -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();
}
}