If I have 5 items left, I cannot buy 7 items!
Your result:
We have 20 items in inventory.
Now we have 5 left.
We have 5 items in inventory.
Sorry, we do not have that many items.Try again.
We have 5 items in inventory.
Now we have 4 left.
Now we have 4 items in inventory.
Now we have 3 left.
We have 3 items in inventory.
Now we have 2 left.
We have 2 items in inventory.
All out?
If I have 5 items left, I cannot buy 7 items
Share
To answer your questions regarding the inventory situation:
You started with 20 items. If you currently have 5 items left after some have been sold or used, it means you’ve sold 15 items (20 – 5 = 15).
Since you only have 5 items remaining, you cannot buy 7 additional items because you do not have sufficient inventory to fulfill that purchase.
The overall conclusion is that you can only sell or buy items up to the number currently available in the inventory. If there are only 5 items left, your options for purchasing or selling are limited to that quantity.
If you have further questions or need more help, feel free to ask!