StockLedgerEntryTemplate

Factory class to create StockLedgerEntries that will share the same value for specific properties.

internal
package

Default

Methods

__construct

__construct(\Shopware\Models\Article\Detail $articleDetail, \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse, string $type) 

Arguments

$articleDetail

\Shopware\Models\Article\Detail

$type

string

createStockLedgerEntry

createStockLedgerEntry(string $transactionId, integer $oldStock, integer $changeAmount) : \Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry

Arguments

$transactionId

string

$oldStock

integer

$changeAmount

integer

Response

\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry

getArticleDetail

getArticleDetail() : \Shopware\Models\Article\Detail

Response

\Shopware\Models\Article\Detail

getComment

getComment() : string

Response

string

getOrderDetail

getOrderDetail() : \Shopware\Models\Order\Detail|null

Response

\Shopware\Models\Order\Detail|null

getReturnShipmentItem

getReturnShipmentItem() : \Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem|null

getSupplierOrderItem

getSupplierOrderItem() : \Shopware\CustomModels\ViisonPickwareERP\SupplierOrder\SupplierOrderItem|null

getType

getType() : string

Response

string

getUser

getUser() : \Shopware\Models\User\User|null

Response

\Shopware\Models\User\User|null

getWarehouse

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

isCorrection

isCorrection() : boolean

Response

boolean

setArticleDetail

setArticleDetail(\Shopware\Models\Article\Detail $articleDetail) 

Arguments

$articleDetail

\Shopware\Models\Article\Detail

setComment

setComment(string $comment) 

Arguments

$comment

string

setCorrection

setCorrection(boolean $isCorrection) 

Arguments

$isCorrection

boolean

setOrderDetail

setOrderDetail(\Shopware\Models\Order\Detail|null $orderDetail = null) 

Arguments

$orderDetail

\Shopware\Models\Order\Detail|null

setReturnShipmentItem

setReturnShipmentItem(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem|null $returnShipmentItem = null) 

setSupplierOrderItem

setSupplierOrderItem(\Shopware\CustomModels\ViisonPickwareERP\SupplierOrder\SupplierOrderItem|null $supplierOrderItem = null) 

setType

setType(string $type) 

Arguments

$type

string

setUser

setUser(\Shopware\Models\User\User|null $user = null) 

Arguments

$user

\Shopware\Models\User\User|null

setWarehouse

setWarehouse(\Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse)