Logidav Docs

SaleProductService extends TransactionalService
in package

Class SaleProductService

Table of Contents

Properties

$container  : ContainerInterface
$em  : EntityManager
$eventDispatcher  : EventDispatcherInterface
$productService  : mixed
$saleProductRepository  : SaleProductRepository
$alfyApi  : AlfyApi
$filesImportService  : FilesImportService
$logService  : LogService

Methods

addRepository()  : void
Add a repository to this service
addSaleUpdate()  : mixed
addService()  : void
Add a service to this service
addShippingAmountForSaleProduct()  : mixed
afterSaleCreated()  : void
afterSaleProductCanceled()  : mixed
checkAndSwitchSaleProductRealShippingMethod()  : mixed
checkChangedStock()  : mixed
checkSaleProductIdfCall()  : mixed
construct()  : mixed
SaleProductService constructor.
delete()  : mixed
find()  : mixed
findBy()  : mixed
findByNot()  : mixed
findByProduct()  : mixed
findItemBySource()  : mixed
Finding item by source
findOneBy()  : mixed
findRetraitSaleProductsByIncrementId()  : array<string|int, mixed>
Récupère les sale products pour une commande retrait
getCanceledTruskSaleProductsByDates()  : array<string|int, mixed>
getEntityManager()  : EntityManager
Getter of the Entity Manager
getFilesImportedArray()  : mixed
getFinalSaleProduct()  : SaleProduct|null
getGroupTransporter()  : mixed
getNbrSales()  : mixed
getQtyProduct()  : mixed
getQtyProductNoStock()  : mixed
getRepo()  : mixed
Get sale product repository
getSaleProductArrivage()  : array<string|int, mixed>
getSaleProductDispo()  : mixed
getSaleProductsPromoOnNull()  : array<string|int, mixed>|float|int|string
getSalesStat()  : mixed
getStatByProductFamily()  : mixed
onSaleProductChange()  : mixed
When sale product are changed
onSaleProductsIdfAppointmentFixed()  : mixed
On
onSaleProductsQtyChange()  : mixed
When a sale product qty is changed
recalculateToPrintForSaleProduct()  : bool
Recalculate to print for sale product
resetChronopostTicket()  : bool
Resetting chronopost ticket
resetGeodisTicket()  : bool
Resetting geodis ticket
resetSaleProductTicket()  : bool
This function is used to reset sale product ticket
save()  : SaleProduct
Save a SaleProduct
searchIdfDeliveryReport()  : mixed
searchProcessingNotPrintedNoStock()  : mixed
Save a SaleProduct
searchShippedChronopost()  : mixed
Get SaleProduct
send()  : mixed
setEntityManager()  : mixed
Setter of the Entity Manager
setSaleProductAsInStock()  : SaleProduct
Setting a sale product as in stock
setSaleProductAsNoStock()  : SaleProduct
Setting a sale product as non stock
setSaleSavProducts()  : void
processToPrintForSaleProduct()  : SaleProduct

Properties

Methods

addRepository()

Add a repository to this service

public addRepository(int $key, string $class) : void
Parameters
$key : int

Key

$class : string

Class

addService()

Add a service to this service

public addService(int $key, mixed $service) : void
Parameters
$key : int

Key

$service : mixed

addShippingAmountForSaleProduct()

public addShippingAmountForSaleProduct(mixed $sale, mixed $product, mixed $shippingMethod) : mixed
Parameters
$sale : mixed
$product : mixed
$shippingMethod : mixed

checkAndSwitchSaleProductRealShippingMethod()

public checkAndSwitchSaleProductRealShippingMethod(Sale $sale) : mixed
Parameters
$sale : Sale

checkChangedStock()

public checkChangedStock(mixed $id) : mixed
Parameters
$id : mixed

checkSaleProductIdfCall()

public checkSaleProductIdfCall(mixed $sp) : mixed
Parameters
$sp : mixed

findBy()

public findBy([mixed $params = [] ]) : mixed
Parameters
$params : mixed = []

findByNot()

public findByNot([mixed $params = [] ]) : mixed
Parameters
$params : mixed = []

findByProduct()

public findByProduct(mixed $id) : mixed
Parameters
$id : mixed

findItemBySource()

Finding item by source

public findItemBySource(mixed $itemId, mixed $source) : mixed
Parameters
$itemId : mixed
$source : mixed

findOneBy()

public findOneBy([mixed $params = [] ]) : mixed
Parameters
$params : mixed = []

findRetraitSaleProductsByIncrementId()

Récupère les sale products pour une commande retrait

public findRetraitSaleProductsByIncrementId(string $incrementId[, string $deliveryMethod = 'RETRAIT' ]) : array<string|int, mixed>
Parameters
$incrementId : string
$deliveryMethod : string = 'RETRAIT'
Return values
array<string|int, mixed>

getCanceledTruskSaleProductsByDates()

public getCanceledTruskSaleProductsByDates(mixed $dates) : array<string|int, mixed>
Parameters
$dates : mixed
Return values
array<string|int, mixed>

getEntityManager()

Getter of the Entity Manager

public getEntityManager() : EntityManager
Return values
EntityManager

getGroupTransporter()

public getGroupTransporter(mixed $start, mixed $end[, mixed $order = 'ASC' ]) : mixed
Parameters
$start : mixed
$end : mixed
$order : mixed = 'ASC'

getNbrSales()

public getNbrSales(mixed $idprod, mixed $start, mixed $end) : mixed
Parameters
$idprod : mixed
$start : mixed
$end : mixed

getQtyProduct()

public getQtyProduct(mixed $id, mixed $date) : mixed
Parameters
$id : mixed
$date : mixed

getQtyProductNoStock()

public getQtyProductNoStock(mixed $id) : mixed
Parameters
$id : mixed

getSaleProductArrivage()

public getSaleProductArrivage(mixed $productId[, bool $fromDate = null ]) : array<string|int, mixed>
Parameters
$productId : mixed
$fromDate : bool = null
Tags
throws
Exception
Return values
array<string|int, mixed>

getSaleProductDispo()

public getSaleProductDispo(mixed $product[, mixed $availability = null ]) : mixed
Parameters
$product : mixed
$availability : mixed = null

getSaleProductsPromoOnNull()

public getSaleProductsPromoOnNull() : array<string|int, mixed>|float|int|string
Return values
array<string|int, mixed>|float|int|string

getSalesStat()

public getSalesStat(mixed $idprod, mixed $start, mixed $end) : mixed
Parameters
$idprod : mixed
$start : mixed
$end : mixed

getStatByProductFamily()

public getStatByProductFamily(mixed $idprod, mixed $parentId, mixed $start, mixed $end) : mixed
Parameters
$idprod : mixed
$parentId : mixed
$start : mixed
$end : mixed

recalculateToPrintForSaleProduct()

Recalculate to print for sale product

public recalculateToPrintForSaleProduct(SaleProduct $saleProduct) : bool
Parameters
$saleProduct : SaleProduct
Return values
bool

resetSaleProductTicket()

This function is used to reset sale product ticket

public resetSaleProductTicket(SaleProduct $saleProduct) : bool
Parameters
$saleProduct : SaleProduct
Return values
bool

searchIdfDeliveryReport()

public searchIdfDeliveryReport(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
$data : mixed
$page : mixed = 0
$max : mixed = null
$getResult : mixed = true

searchProcessingNotPrintedNoStock()

Save a SaleProduct

public searchProcessingNotPrintedNoStock(mixed $data[, int $page = 0 ][, null $max = NULL ][, bool $getResult = true ]) : mixed
Parameters
$data : mixed
$page : int = 0
$max : null = NULL
$getResult : bool = true
Tags
@return

searchShippedChronopost()

Get SaleProduct

public searchShippedChronopost(mixed $data[, mixed $page = 0 ][, mixed $max = null ][, mixed $getResult = true ]) : mixed
Parameters
$data : mixed
$page : mixed = 0
$max : mixed = null
$getResult : mixed = true
Tags
@return

send()

public send(mixed $subject, mixed $to, mixed $template[, array<string|int, mixed> $params = [] ][, bool $debug = false ][, null $sender = 'contact@menzzo.fr' ]) : mixed

See MailerService

Parameters
$subject : mixed
$to : mixed
$template : mixed
$params : array<string|int, mixed> = []
$debug : bool = false
$sender : null = 'contact@menzzo.fr'
Tags
see
MailerService::send()

setEntityManager()

Setter of the Entity Manager

public setEntityManager(EntityManager $em) : mixed
Parameters
$em : EntityManager

the Entity Manager

setSaleSavProducts()

public setSaleSavProducts(SaleSav &$sav, mixed $saleProducts, mixed $productSku) : void
Parameters
$sav : SaleSav
$saleProducts : mixed
$productSku : mixed

        
On this page

Search results