SAP-samples / cloud-espm-cloud-native

Enterprise Sales and Procurement Model (ESPM) Cloud Native is a project that showcases how an application can be made resilient by implementing resilience design patterns. This application is developed using Spring Boot framework and can be deployed locally as well as on SAP BTP, Cloud Foundry environment.
Apache License 2.0
39 stars 41 forks source link

Product with quantity zero is getting added to the cart #22

Closed i047823 closed 2 years ago

i047823 commented 2 years ago

While adding the product items to the cart, when we fill the quantity as 0 and click on the "add to cart" icon. the Items is added to the cart.

Steps to reproduce: Launch ESPM Webshop application https://espmauto-dev-espm-gateway.cfapps.eu10.hana.ondemand.com/webapp/webshop/index.html

login with existing customer "paul.burke@itelo.info" Edit the number of quantity to 0 for any item Click add to cart icon Result : the item gets added to cart. Expected : the item should not be added and should throw a error message with minimum quantity to add to cart.

Attached the screenshot ![Uploading esmp_error3.GIF…]()

navinkrishnan commented 2 years ago

Will be tracked separately