ePages 6.11.0 - 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
writeLines

getValues

returns the values of the attributes from function columns(), uses function getObjectAttributeValue, formats the value via function DE_EPAGES::CSVExportImport::API::Tools::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

writeLines

Writes one line to the CSV file for each element of items. LoadObject of each itemid of $self->items would be exported via function exportLine of package DE_EPAGES::CSVExportImport::API::CSV::ObjectExportDriver.

Syntax
$self->writeLines();