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

Add BackorderedFirst allocator #2914

Closed

Conversation

vassalloandrea
Copy link
Contributor

Add a new allocator to build the packages giving the priority on the backorderable stock locations.

How it works

Using BackorderableFirst allocator if the stock location marked as default can't stock all the required inventory units, all they are shipped from the backorderable stock location.

Documentation link: documentation

With this PR we add the possibility to change the stock allocation logic
using a custom class without override the allocate_inventory method in
SimpleCoordinator.
Now it's possibile use another allocator to give the priority on 
backorderable stock location.
If a on hand stock location ( no backorderable ) can't stock all the 
inventory units, ship all the inventory from the backorderable stock 
location.
@kennyadsl
Copy link
Member

It's worth to say that this PR depends on #2810

@vassalloandrea
Copy link
Contributor Author

After thinking about this PR I'm going to close it whereas BackorderedFirst allocator can be used in a specific situation and shouldn't be added on the Solidus core.

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