When testing the form of add new invoice, i was able to enter only a "." as an item name, which is not really meaningful. I added a validation function so that the item name should at least contain 3 alphabetical characters aside from special characters/spaces.
Screenshots
This is before my validation function where the dot is the item name:This is after my validation function:
Checklist
[X] I have tested these changes
[X] I have updated the relevant documentation
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the codebase
[X] My changes generate no new warnings or errors
[X] The title of my pull request is clear and descriptive
Description
When testing the form of add new invoice, i was able to enter only a "." as an item name, which is not really meaningful. I added a validation function so that the item name should at least contain 3 alphabetical characters aside from special characters/spaces.
Screenshots
This is before my validation function where the dot is the item name: This is after my validation function:
Checklist