WarehouseProductQtyLogService
in package
Class WarehouseProductQtyLogService
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $warehouseProductQtyLogRepository : WarehouseProductQtyLogRepository
Methods
- __construct() : mixed
- getRepo() : WarehouseProductQtyLogRepository
- getWarehouseProductQtyHistoryPaginate() : mixed
- logWarehouseProductQty() : mixed
- save() : WarehouseProductQtyLog
Properties
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
$warehouseProductQtyLogRepository
private
WarehouseProductQtyLogRepository
$warehouseProductQtyLogRepository
Methods
__construct()
public
__construct(WarehouseProductQtyLogRepository $warehouseProductQtyLogRepository, EntityManagerInterface $entityManager, ContainerInterface $container) : mixed
Parameters
- $warehouseProductQtyLogRepository : WarehouseProductQtyLogRepository
- $entityManager : EntityManagerInterface
- $container : ContainerInterface
getRepo()
public
getRepo() : WarehouseProductQtyLogRepository
Return values
WarehouseProductQtyLogRepositorygetWarehouseProductQtyHistoryPaginate()
public
getWarehouseProductQtyHistoryPaginate(mixed $productId, mixed $start, mixed $length, mixed $viewAll, mixed $action) : mixed
Parameters
- $productId : mixed
- $start : mixed
- $length : mixed
- $viewAll : mixed
- $action : mixed
logWarehouseProductQty()
public
logWarehouseProductQty(Warehouse $warehouse, Product $product, User $user, int $oldQty, int $newQty, string $msg, string $action[, Sale $sale = null ]) : mixed
Parameters
save()
public
save(WarehouseProductQtyLog $warehouseProductQtyLog) : WarehouseProductQtyLog
Parameters
- $warehouseProductQtyLog : WarehouseProductQtyLog