-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
[15.0][FIX] repair_stock_move: proper main lot management & default location for remove operations #58
base: 15.0
Are you sure you want to change the base?
Conversation
When product to be repaired has tracking two different issues could be raised: * If a repair line hasn't lot filled (because e.g. product has no tracking), lot/serial for repaired product is used for lines reservation and an error is raised, due to incompatibility with the line product, when this product is untracked. * When creating stock move reservation for repaired product, move line is properly created, but sometimes stock quant is incorrectly updated, e.ge. if there's an older lot available, because the lot was not properly marked during reservation process. This commit fixes both issues
Overall LG |
…ve operations With this fix, for "remove" repair lines repair location is not used as default source location, that is preserved for "add" operations
a300830
to
03431f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@LoisRForgeFlow is this ready to be merged? When done, I'll check if this should be ported to v16 as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dalonsod LGTM, just a suggestion: do you think you could add a small test case for avoiding future regressions?
@LoisRForgeFlow OK, I'll add some tests when possible |
Two fixes added with this PR:
(1) Proper main lot management:
When product to be repaired has tracking two different issues could be raised:
This commit fixes both issues and fixes #39
(2) Default repair line source location for remove operations:
With this fix, for "remove" repair lines repair location is not used as default source location, that is preserved for "add" operations.
@AaronHForgeFlow @DavidJForgeFlow could you review? If needed, I'd split this in two different PRs.