BConnect POS - Reference PHP

OrderItemRepository extends ServiceEntityRepository
in package

Tags
extends

Table of Contents

Methods

__construct()  : mixed
find()  : SaleItem|null
findAll()  : array<string|int, SaleItem>
findBy()  : array<string|int, SaleItem>
findOneBy()  : SaleItem|null
getProductSaleLinesForPeriod()  : array<string|int, mixed>
getProductsForSubCategoryForPeriod()  : array<string|int, mixed>
getProductsForTopLevelCategoryForPeriod()  : array<string|int, mixed>
getProductTotalsForPeriod()  : array<string|int, mixed>
getSalesBySubCategoryForPeriod()  : array<string|int, mixed>
getSalesByTopLevelCategoryForPeriod()  : array<string|int, mixed>
getSubCategorySalesForTopLevelCategoryForPeriod()  : array<string|int, mixed>
getSubCategoryTotalsForPeriod()  : array<string|int, mixed>
getTopLevelCategoryTotalsForPeriod()  : array<string|int, mixed>
getTopProductsForPeriod()  : array<string|int, mixed>
getTotalQuantitySoldForPeriod()  : int

Methods

__construct()

public __construct(ManagerRegistry $registry) : mixed
Parameters
$registry : ManagerRegistry

find()

public find(mixed $id[, mixed $lockMode = = 'null' ][, mixed $lockVersion = = 'null' ]) : SaleItem|null
Parameters
$id : mixed
$lockMode : mixed = = 'null'
$lockVersion : mixed = = 'null'
Return values
SaleItem|null

findBy()

public findBy(array<string|int, mixed> $criteria[, array<string|int, mixed> $orderBy = = 'null' ][, mixed $limit = = 'null' ][, mixed $offset = = 'null' ]) : array<string|int, SaleItem>
Parameters
$criteria : array<string|int, mixed>
$orderBy : array<string|int, mixed> = = 'null'
$limit : mixed = = 'null'
$offset : mixed = = 'null'
Return values
array<string|int, SaleItem>

findOneBy()

public findOneBy(array<string|int, mixed> $criteria[, array<string|int, mixed> $orderBy = = 'null' ]) : SaleItem|null
Parameters
$criteria : array<string|int, mixed>
$orderBy : array<string|int, mixed> = = 'null'
Return values
SaleItem|null

getProductSaleLinesForPeriod()

public getProductSaleLinesForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive, int $productId[, int|null $limit = 50 ]) : array<string|int, mixed>
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
$productId : int
$limit : int|null = 50
Return values
array<string|int, mixed>

getProductsForSubCategoryForPeriod()

public getProductsForSubCategoryForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive, int $subCategoryId[, int|null $limit = 10 ]) : array<string|int, mixed>
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
$subCategoryId : int
$limit : int|null = 10
Return values
array<string|int, mixed>

getProductsForTopLevelCategoryForPeriod()

public getProductsForTopLevelCategoryForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive, int $topLevelCategoryId[, int|null $limit = 10 ]) : array<string|int, mixed>
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
$topLevelCategoryId : int
$limit : int|null = 10
Return values
array<string|int, mixed>

getProductTotalsForPeriod()

public getProductTotalsForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive, int $productId) : array<string|int, mixed>
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
$productId : int
Tags
throws
NonUniqueResultException
NoResultException
Return values
array<string|int, mixed>

getSalesBySubCategoryForPeriod()

public getSalesBySubCategoryForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive[, int|null $parentCategoryId = null ][, int|null $limit = null ]) : array<string|int, mixed>
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
$parentCategoryId : int|null = null
$limit : int|null = null
Return values
array<string|int, mixed>

getSalesByTopLevelCategoryForPeriod()

public getSalesByTopLevelCategoryForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive[, int|null $limit = null ]) : array<string|int, mixed>
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
$limit : int|null = null
Return values
array<string|int, mixed>

getSubCategorySalesForTopLevelCategoryForPeriod()

public getSubCategorySalesForTopLevelCategoryForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive, int $topLevelCategoryId[, int|null $limit = null ]) : array<string|int, mixed>
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
$topLevelCategoryId : int
$limit : int|null = null
Return values
array<string|int, mixed>

getSubCategoryTotalsForPeriod()

public getSubCategoryTotalsForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive, int $subCategoryId) : array<string|int, mixed>
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
$subCategoryId : int
Tags
throws
NonUniqueResultException
NoResultException
Return values
array<string|int, mixed>

getTopLevelCategoryTotalsForPeriod()

public getTopLevelCategoryTotalsForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive, int $topLevelCategoryId) : array<string|int, mixed>
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
$topLevelCategoryId : int
Tags
throws
NonUniqueResultException
NoResultException
Return values
array<string|int, mixed>

getTopProductsForPeriod()

public getTopProductsForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive[, int|null $topLevelCategoryId = null ][, int|null $limit = 5 ]) : array<string|int, mixed>
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
$topLevelCategoryId : int|null = null
$limit : int|null = 5
Return values
array<string|int, mixed>

getTotalQuantitySoldForPeriod()

public getTotalQuantitySoldForPeriod(int $pointOfSaleId, DateTimeImmutable $startInclusive, DateTimeImmutable $endExclusive) : int
Parameters
$pointOfSaleId : int
$startInclusive : DateTimeImmutable
$endExclusive : DateTimeImmutable
Tags
throws
NonUniqueResultException
NoResultException
Return values
int
On this page

Search results