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

[14.0] stock_available_to_promise_release: Allow unrelease processed qties #971

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

mmequignon
Copy link
Member

@mmequignon mmequignon commented Jan 13, 2025

This PR adds a new option on stock routes, allowing to unrelease a delivery even if some internal operations (e.g. pick) are already done, creating a return move to the stock location.

Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

Need to adapt README as well

@jbaudoux
Copy link
Contributor

cc @rousseldenis @lmignon

Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

Some minor remarks

returned_qty = moves_to_return._return_quantity_in_stock(
qty_to_return_at_step
)
qty_returned_for_move += returned_qty
Copy link
Contributor

Choose a reason for hiding this comment

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

I would move this before the block just after the if float_is_zero
qty_returned_for_move += qty_to_return_at_step

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think we should.
Break only breaks this loop, but this qty_returned_for_move must be up to date for the outter one, which relies on this variable to determine how many remaining units has to be returned.
Maybe I'm missing something.

@mmequignon mmequignon force-pushed the 14-unrelease_reverse_qty_done branch from f6cf4c7 to eb6a8f5 Compare February 19, 2025 13:01
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