OutgoingPurchasePriceAssignment

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

The sale pricing assigns purchase prices to outgoing items based on all incoming entries of a given article.

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

Determines all pricing buckets that are unused, that is not completely used by other stock entries and returns in an array, sorted in ascending order of creation.

getUnusedPricingBuckets() : array<mixed,\Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\PurchasePriceAssignment\AssignablePurchasePrice>

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