aropixel / sylius-stock-movement-plugin
Log and display the product stock movements
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 1
Type:sylius-plugin
Requires
- php: ^7.3
- sylius/sylius: ~1.8.0 || ~1.9.0
Requires (Dev)
- behat/behat: ^3.6.1
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.8
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- friendsofsymfony/oauth-server-bundle: ^1.6 || >2.0.0-alpha.0 ^2.0@dev
- lakion/mink-debug-extension: ^2.0.0
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 0.12.74
- phpstan/phpstan-doctrine: 0.12.31
- phpstan/phpstan-strict-rules: ^0.12.0
- phpstan/phpstan-webmozart-assert: 0.12.12
- phpunit/phpunit: ^9.5
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^3.1
- symfony/browser-kit: ^4.4 || ^5.2
- symfony/debug-bundle: ^4.4 || ^5.2
- symfony/dotenv: ^4.4 || ^5.2
- symfony/intl: ^4.4 || ^5.2
- symfony/web-profiler-bundle: ^4.4 || ^5.2
- vimeo/psalm: 4.4.1
Conflicts
- api-platform/core: ^2.6
This package is auto-updated.
Last update: 2024-10-28 21:25:35 UTC
README
Aropixel Sylius Stock Movement Plugin
Log and display the product stock movements. When the stock of a product is updated, the stock movement will be saved and displayed in the admin product stock tab. The origin of the stock update is also displayed (either a new order or a manual update).
Installation
- Install this plugin using composer :
composer require aropixel/sylius-stock-movement-plugin
- import the plugin config in a new "aropixel_sylius_stock_movement.yaml" file inside 'config/packages':
imports: - { resource: "@AropixelSyliusStockMovementPlugin/Resources/config/app/config.yml" }
- Add the StockMovement interface and trait to your ProductVariant entity:
... namespace App\Entity\Product; ... use Aropixel\SyliusStockMovementPlugin\Entity\ProductVariantMovementInterface; use Aropixel\SyliusStockMovementPlugin\Entity\ProductVariantMovementTrait; ... /** * @ORM\Entity * @ORM\Table(name="sylius_product_variant") */ class ProductVariant extends BaseProductVariant implements ProductVariantMovementInterface { use ProductVariantMovementTrait; ...
- Generate and execute the db migrations