Package DE_EPAGES::PriceList::API::PriceList
This package provides the main pricelist functions.
@EXPORT_OK |
Functions
GetCustomerPriceLists
Returns the price list that is valid for the customer at the current time. The price list may be assigned to the customer group or directly to the customer. Returns empty list if no price list is valid for this customer.
Syntax |
$aPriceLists = GetCustomerPriceLists( $Customer, $CurrencyID, $Shop, $User ); |
Input |
|
Return |
|
GetProductPriceList
Returns the price list that is valid for the customer and product at the current time. The price list may be assigned to the customer group or directly to the customer. Returns undef if no price list is valid for this customer.
Syntax |
$PriceList = GetProductPriceList($Product, $Customer, $CurrencyID, $Shop, $User ); |
Input |
|
Return |
|
GetUnityPriceList
Returns the current active price list of a now shop Creates a new price list if it not exists and $CreateIfNotExists is true. Returns undef if no price list exists and $CreateIfNotExists is not true.
Syntax |
$PriceList = GetUnityPriceList($Shop, $CreateIfNotExists ); |
Input |
|
Return |
|
IsTimeFrameDifferent
Returns true if 2 time spans do not overlap.
Syntax |
$NoOverlap = IsTimeFrameDifferent($hTimeSpan1, $hTimeSpan2) |
Input |
|
Return |
|