filtre sur la page demande de sortie
This commit is contained in:
parent
b415b9f501
commit
2764111fa4
@ -124,7 +124,11 @@ class _DemandeSortiePersonnellePageState
|
||||
try {
|
||||
final products = await _database.getProducts();
|
||||
setState(() {
|
||||
_products = products.where((p) => (p.stock ?? 0) > 0).toList();
|
||||
_products = products
|
||||
.where((p) =>
|
||||
(p.stock ?? 0) > 0 &&
|
||||
p.pointDeVenteId == _userController.pointDeVenteId)
|
||||
.toList();
|
||||
_filteredProducts = _products;
|
||||
_isLoading = false;
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user