Logidav Docs

ProductQtyStatService
in package

Table of Contents

Properties

$container  : ContainerInterface
$entityManager  : EntityManagerInterface
$header  : mixed

Methods

__construct()  : mixed
NewProductCommentService constructor.
export()  : StreamedResponse
Exporting sales
getRepo()  : ProductQtyStatRepository
save()  : ProductQtyStat
Save a ProductQtyStat
exportCsv()  : StreamedResponse
exportXls()  : mixed

Properties

$header

private mixed $header = ['name' => 'Nom', 'sku' => 'Sku', 'qty' => 'Qté', 'available' => 'Dispo', 'saleQtyNoStock' => 'Commandes non livre']

Methods

__construct()

NewProductCommentService constructor.

public __construct(ContainerInterface $container, EntityManagerInterface $entityManager) : mixed
Parameters
$container : ContainerInterface
$entityManager : EntityManagerInterface

export()

Exporting sales

public export(mixed $title, mixed $data, mixed $columns, mixed $format[, array<string|int, mixed> $customHeader = [] ]) : StreamedResponse
Parameters
$title : mixed
$data : mixed
$columns : mixed
$format : mixed
$customHeader : array<string|int, mixed> = []
Return values
StreamedResponse

exportCsv()

private exportCsv(mixed $data, mixed $columns, mixed $title) : StreamedResponse
Parameters
$data : mixed
$columns : mixed
$title : mixed
Return values
StreamedResponse

exportXls()

private exportXls(mixed $data, mixed $columns, mixed $title) : mixed
Parameters
$data : mixed
$columns : mixed
$title : mixed

        
On this page

Search results