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: Don't validate warehouse values between Material Request and Stock Entry #24294

Merged
merged 6 commits into from Jan 14, 2021

Conversation

marination
Copy link
Collaborator

@marination marination commented Jan 4, 2021

  • Remove validation that checks if warehouse in Stock Entry is the same as that in the Material Request that it was pulled from.
    Screenshot 2021-01-04 at 6 51 19 PM
  • The warehouse could change from a Material Request to Stock Entry often as different user roles raise Material Requests and different user roles stock up warehouses.
  • Also at the time of creating MR, it is possible that a purchase user wants to issue/receive an Item but does not know from /to which warehouse. Later the stock user will select a warehouse according to stock levels. In such cases also the warehouse will change.
  • Material Requests are usually subject to a lot of changes in the real world, so keeping it flexible would be better.

- Remove validation thta checks if warehouse in Stock Entry is the same as MR that it was pulled from
Copy link
Member

@nabinhait nabinhait left a comment

Choose a reason for hiding this comment

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

Fix the test case (check travis)

@nabinhait nabinhait self-assigned this Jan 13, 2021
- Make test add mismatched item code instead of warehouse, since warehouse can be different.
@marination marination merged commit 2b75342 into frappe:develop Jan 14, 2021
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.

None yet

2 participants