Skip to content

Commit

Permalink
Corregida la ordenación por número.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoRazorX committed Apr 16, 2024
1 parent e7f98db commit 3d762a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Core/Controller/EditSecuenciaDocumento.php
Expand Up @@ -72,10 +72,10 @@ protected function createViews()

protected function createViewsDocuments(string $viewName, string $model, string $title): void
{
$this->addListView($viewName, $model, $title, 'fas fa-copy');
$this->views[$viewName]->addOrderBy(['fecha', $this->tableColToNumber('numero')], 'date', 1);
$this->views[$viewName]->addOrderBy(['numero'], 'number');
$this->views[$viewName]->addSearchFields(['cifnif', 'codigo', 'numero', 'observaciones']);
$this->addListView($viewName, $model, $title, 'fas fa-copy')
->addOrderBy(['fecha', $this->tableColToNumber('numero')], 'date', 1)
->addOrderBy([$this->tableColToNumber('numero')], 'number')
->addSearchFields(['cifnif', 'codigo', 'numero', 'observaciones']);

// desactivamos los botones de nuevo y eliminar
$this->setSettings($viewName, 'btnNew', false);
Expand Down

0 comments on commit 3d762a5

Please sign in to comment.