ePages 6.15.1 - DE_EPAGES/PriceList/API/CSV/PriceListExportDriver.pm

Package DE_EPAGES::PriceList::API::CSV::PriceListExportDriver

This module implements a handler to export shop PriceLists via csv

Base
DE_EPAGES::ShopCSVExportImport::API::CSV::ShopObjectExportDriver
Example
use DE_EPAGES::PriceList::API::CSV::PriceListExportDriver;
DE_EPAGES::PriceList::API::CSV::PriceListExportDriver->exportCSV($FileName, $hFileFormat, $aColumns, $Shop );

Functions

getValues
items

getValues

returns the values of the attributes from function columns(), uses DE_EPAGES::CSVExportImport::API::CSV::ObjectExportDriver::getObjectAttributeValue, formats the value via DE_EPAGES::CSVExportImport::API::CSV::ObjectExportDriver::formatValue.

Syntax
my $aValues = $self->getValues;
Return
$aValues (ref.array.scalar)
values of attributes ($self->columns) for object

items

Returns the objects to export, throws a Warning 'NO_PRICELISTITEMS' if no items, set Monitor 'Total' if defined $self->monitor

Syntax
my $Items = $self->items();
Return
$aaData (float)
parameter of exportCSV | ref.array.hash
  • Product | product object | object
  • PriceList | pricelist object | object
  • Quantity | quantity for price and / or discount | float
  • Price | scaleprice | float
  • Discount | quantitydiscount as percental value | float
  • Value | value for discount | float
  • ValueDiscount | valuediscount as percental value