Factory class to create StockLedgerEntries that will share the same value for specific properties.
internal | |
---|---|
package |
Default |
__construct(\Shopware\Models\Article\Detail $articleDetail, \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse, string $type)
\Shopware\Models\Article\Detail
string
createStockLedgerEntry(string $transactionId, integer $oldStock, integer $changeAmount) : \Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry
string
integer
integer
\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry
getArticleDetail() : \Shopware\Models\Article\Detail
\Shopware\Models\Article\Detail
getComment() : string
string
getOrderDetail() : \Shopware\Models\Order\Detail|null
\Shopware\Models\Order\Detail|null
getReturnShipmentItem() : \Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem|null
getSupplierOrderItem() : \Shopware\CustomModels\ViisonPickwareERP\SupplierOrder\SupplierOrderItem|null
getType() : string
string
getUser() : \Shopware\Models\User\User|null
\Shopware\Models\User\User|null
getWarehouse() : \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse
isCorrection() : boolean
boolean
setArticleDetail(\Shopware\Models\Article\Detail $articleDetail)
\Shopware\Models\Article\Detail
setComment(string $comment)
string
setCorrection(boolean $isCorrection)
boolean
setOrderDetail(\Shopware\Models\Order\Detail|null $orderDetail = null)
\Shopware\Models\Order\Detail|null
setReturnShipmentItem(\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem|null $returnShipmentItem = null)
\Shopware\CustomModels\ViisonPickwareERP\ReturnShipment\ReturnShipmentItem|null
setSupplierOrderItem(\Shopware\CustomModels\ViisonPickwareERP\SupplierOrder\SupplierOrderItem|null $supplierOrderItem = null)
\Shopware\CustomModels\ViisonPickwareERP\SupplierOrder\SupplierOrderItem|null
setType(string $type)
string
setUser(\Shopware\Models\User\User|null $user = null)
\Shopware\Models\User\User|null
setWarehouse(\Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse)