Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix validation error for the decimal quantity field #785

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lanresmith
Copy link
Contributor

Fix validation error for the decimal quantity field when the value starts with the decimal sign (dot/comma).

As can be seen in the screenshot below, form validation fails for a value like .2 - which is a valid value - even when the total is correctly calculated. This is quite inconsistent.

Code formatting/refactoring was also done for some parts of the existing code in order to provide clarity and reduce repetitions e.g. the GFCommon::is_numeric method was used 4 times in the old code but just twice in the new code.

Screenshot 2024-03-15 at 15 20 57

Context

⛑️ Ticket(s): https://secure.helpscout.net/link/to/conversation

📓 Notion: https://notion.so/link/to/card

💬 Slack: https://slack.com/link/to/thread-or-message

Summary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant