Report

Extends \Shopware\Components\Model\ModelEntity

ORM\Entity
ORM\Table

(name="pickware_erp_stock_valuation_reports")

package

Default

Methods

__construct

__construct(\DateTimeInterface $reportingDay, string $method, \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse) 

Arguments

$reportingDay

\DateTimeInterface

$method

string

getComment

getComment() : string|null

Response

string|null

getGenerationStep

getGenerationStep() : string|null

Response

string|null

getId

getId() : integer

Response

integer

getMethod

getMethod() : string

Response

string

getNextGenerationStep

getNextGenerationStep() : null|string

Response

null|string

getProgress

getProgress() : float

Response

float

getReportingDay

getReportingDay() : \DateTimeInterface

Response

\DateTimeInterface

getRows

getRows() : \Doctrine\Common\Collections\ArrayCollection

Response

\Doctrine\Common\Collections\ArrayCollection

getUntilDate

getUntilDate() : \DateTimeInterface|null

Response

\DateTimeInterface|null

getWarehouse

getWarehouse() : \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse

getWarehouseCode

getWarehouseCode() : string

Response

string

getWarehouseName

getWarehouseName() : string

Response

string

isGenerated

isGenerated() : boolean

Response

boolean

isPreview

isPreview() : boolean

Response

boolean

markCurrentGenerationStepAsFinished

markCurrentGenerationStepAsFinished() 

Persists the report by removing the preview flag.

persist() 
Throws
\Shopware\Plugins\ViisonPickwareERP\Components\StockValuation\StockValuationException

setComment

setComment(string|null $comment) 

Arguments

$comment

string|null

updateUntilDateBasedOnGenerationDate

updateUntilDateBasedOnGenerationDate(\DateTimeInterface $generationDate) 

Arguments

$generationDate

\DateTimeInterface

Usually you call this with "now" but this is a necessary parameter for reproducible unit tests.

Constants

AVERAGE

AVERAGE

FIFO

FIFO

LIFO

LIFO

METHODS

METHODS

CREATED

CREATED

PREPARED

PREPARED

CALCULATED

CALCULATED

RATED

RATED

PERSISTED

PERSISTED

STEPS

STEPS