Skip to content
Extraits de code Groupes Projets
Valider effb75db rédigé par anas elhaddad's avatar anas elhaddad
Parcourir les fichiers

fix items cart filters

parent e0389281
Branches
Pipeline #16535 réussi avec les étapes
in 1 minute et 37 secondes
## [1.0.77-RELEASE]
### Added
- New features that have been added.
### Changed
- Changes in existing functionality.
### Deprecated
- Soon-to-be removed features.
### Removed
- Features that have been removed.
### Fixed
- fix items cart filters
### Security
- Any security improvements.
## [1.0.77-RELEASE] ## [1.0.77-RELEASE]
### Added ### Added
- add order restoration - add order restoration
......
...@@ -1098,10 +1098,11 @@ public class CartServiceImp implements CartService { ...@@ -1098,10 +1098,11 @@ public class CartServiceImp implements CartService {
} }
List<ProductDetailsCartDTO> productDetailsCartDTOS = cart.getItems().stream() List<ProductDetailsCartDTO> productDetailsCartDTOS = cart.getItems().stream()
.map(item -> mapItemToProductDetails(item, productMap))
.filter(Objects::nonNull) .filter(Objects::nonNull)
.filter(item -> !item.getStatus().equals(ItemCartStatus.DELETED_BO)) .filter(item -> !item.getStatus().equals(ItemCartStatus.DELETED_BO))
.filter(item -> !(item.getStatus().equals(ItemCartStatus.DELETED_SITE) && item.getSource().equals(ItemSource.WEB))) .filter(item -> !(item.getStatus().equals(ItemCartStatus.DELETED_SITE) && item.getSource().equals(ItemSource.WEB)))
.filter(itemCart -> Boolean.FALSE.equals(itemCart.isExpired()))
.map(item -> mapItemToProductDetails(item, productMap))
.toList(); .toList();
......
0% ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter