ePages 7.28.0 - DE_EPAGES/Order/API/LineItemPriceCalculator.pm

Package DE_EPAGES::Order::API::LineItemPriceCalculator

This Class is use for calculate the LineItemProduct price with/without Tax to the rest API

Functions

calculate

calculate

This method calculate the LineItemProduct price with/without tax to the rest API and return a hash with the price to be use on the rest API $example: { 'BasePrice' => 30.00, 'LineItemPrice' => 30.00, 'TaxModelLineItem' => TAX_MODEL_GROSS or TAX_MODEL_NET}

Syntax
calculate( $LineItem, $CurrencyID, $IncludeTaxInLineItem );
Input
$LineItem
DE_EPAGES::Product::API::Object::LineItemProduct
$CurrencyID
int
$IncludeTaxInLineItem (String)
Flag to decide if the LineItem price should be show in Net or Gross
Return
refhash