ePages 6.17.17 - DE_EPAGES/Order/DAL/SalesVolume.pm

Package DE_EPAGES::Order::DAL::SalesVolume

@EXPORT_OK
DAL_GetSalesVolume
DAL_GetStoreSalesVolume

Functions

DAL_GetSalesVolume
DAL_GetStoreSalesVolume

DAL_GetSalesVolume

Return the sales volume for orders by a time range

Syntax
$SalesVolume = DAL_GetSalesVolume($ShopID,$FromDate,$ToDate,$CurrencyID);
Input
$ShopID (integer)
Shop ID
$FromDate (datetime)
start date
$ToDate (datetime)
end date
$CurrencyID (string)
currency id
Return
$Summ (string)
lineitemcontainer.totalbeforetax of orders

DAL_GetStoreSalesVolume

Return the sales volume for all shops for orders by a time range

Syntax
$rhResult = DAL_GetStoreSalesVolume($FromDate,$ToDate);
Input
$FromDate (datetime)
start date
$ToDate (datetime)
end date
Return
$rhResult (reference to hash)
with following keys:
  • ShopID - shop id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • Amount - value - net amount per shop and currency
  • OrderCount - value - number of orders per shop and currency