Base class for all pricing types (classes). Pricing are used to assign purchase prices to a given number of items. A pricing consists of one or more price items. A price item comprises a purchase price together with its applicability (number of items the purchase price can be applied to) and, if it exists, a reference to the related incoming history entry. The price items form a partition in the following sense: the sum of the applicabilities of all price items equal the given number of items, which should be priced using the pricing.
package |
Default |
---|
__construct(\Shopware\Components\Model\ModelManager $entityManager, \Shopware\Models\Article\Detail $articleDetail, \Shopware\CustomModels\ViisonPickwareERP\Warehouse\Warehouse $warehouse, integer $quantity)
\Shopware\Components\Model\ModelManager
\Shopware\Models\Article\Detail
integer
current() : \Shopware\Plugins\ViisonPickwareERP\Components\StockLedger\PurchasePriceAssignment\AssignablePurchasePrice
getDefaultPrice() : float
float
key() : integer
integer
next()
rewind()
valid() : boolean
boolean