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

Location: make sure an (internal) location name can not be the key of the key used for the total amount (for example: "total") #1121

Open
NRodriguezcuellar opened this issue Oct 11, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@NRodriguezcuellar
Copy link
Contributor

Package version (if known): <1.0.0a53>

Describe the bug

When you create an internal location with the name 'total' and create a physical copy that is assigned to that location you will get an error when it is being resolved, this causes pages to not work.

Steps to Reproduce

  1. Go to locations
  2. create an internal location with the name "total"
  3. create a physical item and assign it to that location
  4. go to the document details page on either the back-office or front-office
  5. error

Expected behavior

  • Users should not be able to make a location name if the key is being used by something internal or if the name already exists (high probability of the same error occurring )

Screenshots (if applicable)

Additional context

@NRodriguezcuellar NRodriguezcuellar added the bug Something isn't working label Oct 11, 2021
@NRodriguezcuellar NRodriguezcuellar changed the title Location: make sure an (internal) location name can not be the key of the key used for the total amount (for example: "total")) Location: make sure an (internal) location name can not be the key of the key used for the total amount (for example: "total") Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant