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