Open nus-pe-bot opened 1 year ago
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.
--
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]