-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Inventory] Remove backorders & available on demand support, add tracking toggle on Stockable #5650
[Inventory] Remove backorders & available on demand support, add tracking toggle on Stockable #5650
Conversation
cd9f3a0
to
735ebaa
Compare
91d5257
to
94eba03
Compare
@@ -52,9 +38,9 @@ Normally, inventory units are created automatically by Sylius and you do not nee | |||
use Sylius\Component\Inventory\Model\InventoryUnitInterface; | |||
|
|||
$variant = // Get variant from product. | |||
$inventoryUnits = $this->get('sylius.inventory_unit_factory')->create($variant, 6, InventoryUnitInterface::STATE_BACKORDER); | |||
$inventoryUnits = $this->get('sylius.inventory_unit_factory')->create($variant, 6, InventoryUnitInterface::STATE_RETURNED); |
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.
We do not support returns out of the box, so the state should be different.
Btw. this state should be completely removed.
75f17d6
to
9cbd6a8
Compare
9cbd6a8
to
290b402
Compare
"php": "^5.6|^7.0", | ||
|
||
"sylius/resource": "^1.0" | ||
"php": "^5.6|^7.0" |
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.
Is this change needed?
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.
Yes, we don't need sylius/resource
any more.
Thanks Kamil! 👍 |
Temporarily removing backorders & available on demand support - will rewrite it soon (with scenarios 🎉), adding tracking toggle on stockable.