ReturningPurchasePriceAssignment

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

The return pricing assigns purchase prices to returned items based on all outgoing entries of a given article and a given order item.

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