Skip to content

Commit

Permalink
Merge pull request #1580 from elguitarraverde/Tarea-#3024---agregar-f…
Browse files Browse the repository at this point in the history
…iltros-reservado-pendiente-recepcion-disponible

Tarea #3024 - agregar filtros reservado pendiente recepcion disponible
  • Loading branch information
NeoRazorX committed Apr 25, 2024
2 parents cc32040 + a490e56 commit 33020c4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Core/Controller/ListProducto.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,15 @@ protected function createViewStock(string $viewName = 'ListStock'): void
$this->addFilterNumber($viewName, 'min-stock', 'quantity', 'cantidad', '>=');
$this->addFilterNumber($viewName, 'max-stock', 'quantity', 'cantidad', '<=');

$this->addFilterNumber($viewName, 'min-reserved', 'reserved', 'reservada', '>=');
$this->addFilterNumber($viewName, 'max-reserved', 'reserved', 'reservada', '<=');

$this->addFilterNumber($viewName, 'min-pterecibir', 'pending-reception', 'pterecibir', '>=');
$this->addFilterNumber($viewName, 'max-pterecibir', 'pending-reception', 'pterecibir', '<=');

$this->addFilterNumber($viewName, 'min-disponible', 'available', 'disponible', '>=');
$this->addFilterNumber($viewName, 'max-disponible', 'available', 'disponible', '<=');

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

0 comments on commit 33020c4

Please sign in to comment.