Package DE_EPAGES::PriceList::API::Object::PriceList
object interface for PriceList.
Base |
DE_EPAGES::Object::API::Object::Object |
Functions
- addCustomer
- addCustomerGroup
- className
- dbPackage
- getQuantityDiscounts
- getScalePrices
- getValueDiscounts
- hasQuantityDiscounts
- hasScalePrices
- hasValueDiscounts
- quantityDiscounts
- removeCustomer
- removeCustomerGroup
- scalePrices
- setQuantityDiscounts
- setScalePrices
- setValueDiscounts
- valueDiscounts
addCustomer
Assigns a customer to the price list.
Syntax |
$PriceList->addCustomer( $Customer ); |
Input |
|
addCustomerGroup
Assigns a customer group to the price list.
Syntax |
$PriceList->addCustomerGroup( $CustomerGroup ); |
Input |
|
className
Returns the class name, used for DAL access.
Syntax |
$ClassName = $PriceList->className; |
Return |
|
dbPackage
Returns the database package, used for DAL access.
Syntax |
$DbPackage = $PriceList->dbPackage; |
Return |
|
getQuantityDiscounts
Returns the quantity discounts for the given product and tax model in the requested precision.
Syntax |
$ahQuantityDiscounts = $Object->getQuantityDiscounts($Product); |
Input |
|
Return |
|
getScalePrices
Returns the scale prices for the given product and tax model in the requested precision.
Syntax |
$ahScalePrices = $Object->getScalePrices($Product, $TaxModel, ); $ahScalePrices = $Object->getScalePrices($Product, $TaxModel, $ExtraPrecision); |
Input |
|
Return |
|
getValueDiscounts
Returns the value discounts for the given product and tax model in the requested precision.
Syntax |
$ahValueDiscounts = $Object->getValueDiscounts($Product, $TaxModel, ); $ahValueDiscounts = $Object->getValueDiscounts($Product, $TaxModel, $ExtraPrecision); |
Input |
|
Return |
|
hasQuantityDiscounts
Returns true if the pricelist includes a quantity discount for the given product.
Syntax |
$HasDiscounts = $PriceList->hasQuantityDiscounts( $Product ); |
Input |
|
Return |
|
hasScalePrices
Returns true if the pricelist includes scale prices for the given product.
Syntax |
$HasScalePrices = $PriceList->hasScalePrices( $Product ); |
Input |
|
Return |
|
hasValueDiscounts
Returns true if the pricelist includes a value discount for the given product.
Syntax |
$HasDiscounts = $PriceList->hasValueDiscounts( $Product ); |
Input |
|
Return |
|
quantityDiscounts
Returns all quantity discounts for the given product in this price list.
Syntax |
$aQuantityDiscounts = $PriceList->quantityDiscounts( $Product ); |
Input |
|
Return |
|
removeCustomer
Removes the assignment of a customer to the price list.
Syntax |
$PriceList->removeCustomer( $Customer ); |
Input |
|
removeCustomerGroup
Removes the assignment of a customer group to the price list.
Syntax |
$PriceList->removeCustomerGroup( $CustomerGroup ); |
Input |
|
scalePrices
Returns all scale prices for the given product in this price list.
Syntax |
$aScalePrices = $PriceList->scalePrices( $Product ); |
Input |
|
Return |
|
setQuantityDiscounts
Sets all quantity discounts for the given product and tax model. Deletes quantity discounts that are not included in the list. Calculates net prices from gross prices if $TaxModel is TAX_MODEL_GROSS.
Syntax |
$Object->setQuantityDiscounts($Product, $TaxModel, $ahQuantityDiscounts); |
Input |
|
setScalePrices
Sets all scale prices for the given product and tax model. Deletes scale prices that are not included in the list. Calculates net prices from gross prices if $TaxModel is TAX_MODEL_GROSS.
Syntax |
$Object->setScalePrices($Product, $TaxModel, $ahScalePrices); |
Input |
|
setValueDiscounts
Sets all value discounts for the given product and tax model. Deletes value discounts that are not included in the list. Calculates net prices from gross prices if $TaxModel is TAX_MODEL_GROSS.
Syntax |
$Object->setValueDiscounts($Product, $TaxModel, $ahValueDiscounts); |
Input |
|
valueDiscounts
Returns all value discounts for the given product in this price list.
Syntax |
$aValueDiscounts = $PriceList->valueDiscounts( $Product ); |
Input |
|
Return |
|