nus-cs2103-AY2223S1 / pe-dev-response

0 stars 0 forks source link

An order can be made even if it needs a larger quantity of items than what is in the inventory. #4923

Open nus-pe-bot opened 1 year ago

nus-pe-bot commented 1 year ago

Screenshot 2022-11-11 at 5.00.13 PM.png

Here, an order of 351 candy canes keychains can be made, although there are only 350 candy canes keychains in the inventory. This defeats the purpose of keeping track of inventory items.


[original: nus-cs2103-AY2223S1/pe-interim#5165] [original labels: type.FeatureFlaw severity.VeryLow]

donljh commented 1 year ago

Team's Response

The team intended for this behaviour for the functionality. The rationale is to allow orders which are pre-orders and allow users to take in orders even though they do not have the required inventory to fulfil them at the given moment. This is akin to normal business operation behaviors in reality.

Additionally, to ensure data consistency between orders and inventory, our mark order functionality only updates the appropriate inventory item quantities when there are sufficient in-stock quantities to deliver an order.

Duplicate status (if any):

--