artesanik / sylius-employee-plugin
Employee information for Customers plugin for Sylius.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:sylius-plugin
Requires
- php: ^7.3
- sylius/sylius: ^1.7
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- cweagans/composer-patches: ^1.6
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.0
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^6.0
- phpstan/phpstan-doctrine: ^0.11
- phpstan/phpstan-shim: ^0.11
- phpstan/phpstan-webmozart-assert: ^0.11
- phpunit/phpunit: ^8.0
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^3.0
- symfony/browser-kit: ^3.4|^4.3
- symfony/console: ^4.4.7
- symfony/debug-bundle: ^3.4|^4.3
- symfony/dotenv: ^4.3
- symfony/intl: ^3.4|^4.3
- symfony/maker-bundle: ^1.15
- symfony/web-profiler-bundle: ^3.4|^4.3
- symfony/web-server-bundle: ^3.4|^4.3
This package is auto-updated.
Last update: 2024-10-23 14:01:28 UTC
README
Plugin Employee
Plugin for company internal stores for employees.
Documentation
This plugin is simple add four fields to the customer model: EmployeeId, Position, Office and Company
This informatiĆ³n can be edited in the Admin shop interface.
The user can see this information but isn't allowed to modify this information.
That is for securing the information.
It has two translations:
- English
- Spanish
More translations are welcome as PR.
It have a top limit control, you can create Limits in money or quantity and apply to the employees.
And you can put an employee excluded from the limit, all this from the admin dashboard.
Installation
- Require plugin with composer
composer require artesanik/sylius-employee-plugin
- Register the Plugin in config/bundles.php:
....
Artesanik\SyliusEmployeePlugin\ArtesanikSyliusEmployeePlugin::class => ['all' => true],
....
- create a file sylius_employee_plugin.yaml in config/packages
cd config/packages
touch sylius_employee_plugin.yaml
nano sylius_employee_plugin.yaml
- and put this lines inside:
imports:
- { resource: "@ArtesanikSyliusEmployeePlugin/Resources/config/config.yml" }
- create a file sylius_employee_plugin.yaml in config/routes
cd config/routes
touch sylius_employee_plugin.yaml
nano sylius_employee_plugin.yaml
- and put this lines inside
artesanik_sylius_employee_plugin:
resource: "@ArtesanikSyliusEmployeePlugin/Resources/config/routes.yml"
- Copy plugin migrations to your migrations directory (e.g. src/Migrations) and apply them to your database:
cp -R vendor/artesanik/sylius-employee-plugin/migrations/* src/Migrations
bin/console doctrine:migrations:migrate
remember to make a
bin/console cache:clear
At the end of the install
COMPLETED
- Add employee purchase budget [v0.3]
TODO
- Add EmployeeId to Order
- Add compatibility with SyliusLdapPlugin