Skip to content

MAX_INT (2147483647) is not handled in product and item quantity upon adding item #5

@dannytayjy

Description

@dannytayjy

Problem: MAX_INT (2147483647) is not handled in product and item quantity upon adding item

Adding MAX_INT items to an existing item (of the same expiry date) results in integer overflow and displays a negative quantity

Before Execution of Command in Command Text Box:

image.png

After Execution of Command in Command Text Box:

image.png

Actual Outcome:

  • Item 1-1 now has a quantity of -2147483599
  • Product 1 now has a total quantity of -2147483569

Expected Outcome:

  • The program should not allow the user to enter integer that is more than MAX_INT

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions