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

LIMS-1136: Trim preceding spaces from postcode and email address #704

Merged

Conversation

ndg63276
Copy link
Collaborator

JIRA ticket: LIMS-1136

Summary:

Currently, it is possible for post codes to contain spaces before and after the actual post code. Sending such post codes to the shipping service results in a 422 error.

Changes:

  • Use trim rather than rtrim, for post code and email address.

To test:

  • Book an incoming shipment
  • Book an incoming shipment with a space at the start of the post code
  • Book an incoming shipment with a space at the start of the email address

Copy link
Contributor

@MattPrit MattPrit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@ndg63276 ndg63276 merged commit 3284810 into prerelease Dec 14, 2023
2 checks passed
@ndg63276 ndg63276 deleted the fix/LIMS-1136/trim-preceding-spaces-from-postcode branch December 14, 2023 15:34
NKatti2011 pushed a commit that referenced this pull request Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants