BConnect POS - Reference PHP

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
$product : Product
$newQuantity : int
$user : User
$actionType : string = 'Inventaire'
$libelle : string = 'Inventaire du produit'

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
Parameters
$product : Product
$newQuantity : int
$user : User
$actionType : string = 'Inventaire Entrepôt'
$libelle : string = 'Inventaire du produit (Entrepôt)'
On this page

Search results