ePages 6.17.40 - DE_EPAGES/Klarna/API/SplitDiscount.pm

Package DE_EPAGES::Klarna::API::SplitDiscount

This module implements functions to split different kinds of discount for separate VAT classes.

@EXPORT_OK
SplitDiscount

Functions

SplitDiscount

SplitDiscount

This function splits given discount, coupon etc. for the VAT classes which are present in current line item container (i.e. order).

Syntax
my $hSplitted = SplitDiscount($Discount);
Input
$Discount (LineItem)
Discount line item
$PaymentTypeName (String)
Name of Klarna payment type
Return
$hSplitted (hash reference)
hash containing splitted amounts of money. VAT classes are
used as hash keys. Value contains new hash where keys are
VatIncluded, VatExcluded and Vat.