NullPurchasePriceAssignment

Extends \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\PurchasePriceAssignment\AbstractPurchasePriceAssignment

The purchase pricing assigns "no" price to all items, which should be priced. This pricing is used when no actual stock change took place (e.g. change of bin location) and therefore no purchase price is relevant.

package

Default

Methods

__construct

__construct(\Shopware\Components\Model\ModelManager $entityManager, \Shopware\Models\Article\Detail $articleDetail, \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse, integer $quantity) 
inherited

Arguments

$entityManager

\Shopware\Components\Model\ModelManager

$articleDetail

\Shopware\Models\Article\Detail

$quantity

integer

Returns the list item, which is referenced by the list pointer.

current() : \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\PurchasePriceAssignment\AssignablePurchasePrice
inherited

Returns the default purchase price of the article associated with the instance.

getDefaultPrice() : float
inherited

Response

float

Returns the current position of the list pointer.

key() : integer
inherited

Response

integer

Moves the list pointer to the next list item.

next() 
inherited

Resets the list pointer to its initial state.

rewind() 
inherited

Checks if the list pointer points to a list item.

valid() : boolean
inherited

Response

boolean