In an order view when adding another product to the order it is possible to set a quantity greater than the quantity in stock for this product
it should not be possible to add more than the quantity in stock
Steps to reproduce the behavior:
Screenshots
https://drive.google.com/file/d/1LYOxmyQFNTTgzAzWugUGTOTAZhp7wKA2/view?usp=sharing
Some PR (#18200 , #18168 ) and issue ( #17963 , #17967 , #18031 , #17968 ) are similar/related to this issue. But this issue is about another behavior discoverd while testing them
@SD1982 so actually the behavor you described is normal Because the product you selected is allowed to be ordered out of stock
I you try the same action with a Mug or example you'll see that the add button is disabled
I still created a PR to improve the check server side and use a more appropriate exception, but this issue can be closed anyway
Most helpful comment
I still created a PR to improve the check server side and use a more appropriate exception, but this issue can be closed anyway