There are several software, the results found a few problems, you may not be aware of the problem.
Data type
Inventory management is unavoidable in the warehouse, but if the input data is not checked strictly point
You can only hehe.
The first problem is that many negative values can be entered in negative numbers, such as the number of goods sold, normal is not
Problem, but there is no limit and no warning.
The second problem is that there is a limit to the maximum number of items because the database is a field with a maximum value, but there is no limit
Line judgment, I enter -10e50, directly overflow. In fact, this is the continuation of the first problem.
I did not see the code, I guess this amount of text input is converted with Strtofloatdef
A setup Flaw
This will also appear under test in the program you have done.
In the ComboBox the first item is set to "Add new option" followed by the added option. Then judge in the OnChange event.
Itemindex=0 the window to add options. (Content in items is related to a table)
?
The things that go wrong are:
- Click the drop-down arrow in the ComboBox to expand the content
- Use the keyboard up and DOWN ARROW keys to switch to select options, the first item "Add new Option" will automatically pop up the window.
- Select an option to confirm. The problem is that the window will appear again once the current window is closed.
If you choose again, you may be able to make an error.
If you delete the first item like I do, add a few options (it exists in the database)
After the second confirmation is 100% error. Then the database will have some strange things, in short, very collapse.
Shortcut key Confusion
This is mainly in the Cashier section, Software design time "+" to modify the number of items, pop up a panel to modify, confirm and close. "-" Modify the unit price
Out is a panel that pops up and closes after confirmation. But if I don't confirm the "+"-"-" press, edit on the panel can't get the focus in the first time.
Feel the need to tighten control. or form.showmodule the modified Windows directly. Avoid the trouble of disorderly pressing.
This two-day Test software found problems