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

[Inventory] Remove backorders & available on demand support, add tracking toggle on Stockable #5650

Merged

Conversation

pamil
Copy link
Contributor

@pamil pamil commented Jul 29, 2016

Q A
Bug fix? no
New feature? no
BC breaks? yes
Related tickets -
License MIT

Temporarily removing backorders & available on demand support - will rewrite it soon (with scenarios 🎉), adding tracking toggle on stockable.

@pamil pamil force-pushed the inventory/remove-backorders-support branch 2 times, most recently from cd9f3a0 to 735ebaa Compare July 29, 2016 13:42
@pjedrzejewski pjedrzejewski added the BC Break PRs introducing BC breaks (do not even try to merge). label Aug 2, 2016
@pamil pamil force-pushed the inventory/remove-backorders-support branch 2 times, most recently from 91d5257 to 94eba03 Compare August 4, 2016 13:13
@pamil pamil changed the title [Inventory] Remove backorders support [Inventory] Remove backorders & available on demand support, add tracking toggle on Stockable Aug 4, 2016
@@ -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);
Copy link
Contributor

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.

@pamil pamil force-pushed the inventory/remove-backorders-support branch 2 times, most recently from 75f17d6 to 9cbd6a8 Compare August 5, 2016 09:21
@pamil pamil force-pushed the inventory/remove-backorders-support branch from 9cbd6a8 to 290b402 Compare August 5, 2016 09:31
"php": "^5.6|^7.0",

"sylius/resource": "^1.0"
"php": "^5.6|^7.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change needed?

Copy link
Contributor Author

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.

@pjedrzejewski pjedrzejewski merged commit fbc0dec into Sylius:master Aug 8, 2016
@pjedrzejewski
Copy link
Member

Thanks Kamil! 👍

@pamil pamil deleted the inventory/remove-backorders-support branch August 8, 2016 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break PRs introducing BC breaks (do not even try to merge).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants