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

OBPIH-4746 Fix creating picklist and shipment items after revising #3442

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

awalkowiak
Copy link
Collaborator

No description provided.

@mdpearson
Copy link
Member

Doesn't look like it'll cause problems elsewhere since there's only one caller of reviseItems. I'm curious as to why the transactional context caused validation problems (since previously there was a save/flush right above the createMissing*Items calls). But, hibernate being what it is, if this works, then 👍 from me

@awalkowiak
Copy link
Collaborator Author

I'm curious as to why the transactional context caused validation problems

@mdpearson That's my blind guess. The issue was that when removing old picklist items for revised items in the stockMovementService.reviseItems there is Product Availability refresh. Then while creating missing picklist items in stockMovementService.createMissingPicklistItems, there is a calculation of available items (taken from Product Availability). The values in available items were based on the old Product Availability, and after moving createMissingPicklistItems and createMissingShipmentItems values were "fresh".

@awalkowiak awalkowiak merged commit 476bd50 into release/0.8.19 Aug 29, 2022
@awalkowiak awalkowiak deleted the OBPIH-4746 branch August 29, 2022 21:34
Copy link
Member

@jmiranda jmiranda left a comment

Choose a reason for hiding this comment

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

Let's put this into a tech debt ticket.

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

3 participants