StockService
in package
Table of Contents
Properties
- $entityManager : EntityManagerInterface
Methods
- __construct() : mixed
- updateSaleStock() : void
- Met à jour la quantité de stock de vente et gère l'historique
- updateWarehouseStock() : void
- Met à jour la quantité de stock entrepôt et gère l'historique
Properties
$entityManager read-only
private
EntityManagerInterface
$entityManager
Methods
__construct()
public
__construct(EntityManagerInterface $entityManager) : mixed
Parameters
- $entityManager : EntityManagerInterface
updateSaleStock()
Met à jour la quantité de stock de vente et gère l'historique
public
updateSaleStock(Product $product, int $newQuantity, User $user[, string $actionType = 'Inventaire' ][, string $libelle = 'Inventaire du produit' ]) : void
Parameters
updateWarehouseStock()
Met à jour la quantité de stock entrepôt et gère l'historique
public
updateWarehouseStock(Product $product, int $newQuantity, User $user[, string $actionType = 'Inventaire Entrepôt' ][, string $libelle = 'Inventaire du produit (Entrepôt)' ]) : void