rismm / pe

0 stars 0 forks source link

Adding a quantity over INT_MAX #4

Open rismm opened 7 months ago

rismm commented 7 months ago

When using inflow on an item with a quantity less than INT_MAX, e.g. 2147483640, adding to it such that the quantity exceeds INT_MAX would not update the quantity. Although I understand the limitations of storing a value more than INT_MAX, I would expect the quantity to still update to the value of INT_MAX because the quantity of the item is still not at INT_MAX yet, although it would not reflect the actual value.

image.png

nus-se-bot commented 7 months ago

Team's Response

Similar to the outflow command bug raised, the main functionality of the inflow command is accurately track your stocks inflow. If the product were to be updated according to your case, then it would make it even harder to track(ie tracking the remaining inflow), which is not ideal.

ps: one important note is that, we are targetting small business owners, it is highly unlikely that they will have close to 2 billion stocks per item. If they were to have, perhaps StockPal is not the app they should be using.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: [replace this with your explanation]