AssignablePurchasePrice

Simple class to model a list item of a pricelist as well as a pricing item.

package

Default

Methods

__construct

__construct( $price,  $quantity, \Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry $stockLedgerEntry = null) 

Arguments

$price

$quantity

Returns the price of the item

getPrice() 

Returns the quantity of the item

getQuantity() 

Returns the stock entry of the item

getStockentry() 

Sets the items price to a given value

setPrice( $price) 

Arguments

$price

Sets the quantity of the item to a given value

setQuantity( $quantity) 

Arguments

$quantity

Sets the stock entry of the item to a given one

setStockentry(\Shopware\CustomModels\ViisonPickwareERP\StockLedger\StockLedgerEntry $stockLedgerEntry)