ePages 6.11.0 - DE_EPAGES/Product/API/Object/LineItemProductAppointment.pm

Package DE_EPAGES::Product::API::Object::LineItemProductAppointment

object interface for LineItemProductAppointment.

Base
DE_EPAGES::Product::API::Object::LineItemProduct

Functions

addMailParams
addQuantityToStock
clearMail
default
recalculate
substractQuantityFromStock

addMailParams

Attaches a 'vCalendar.ics' file at mails

Syntax
$LineItem->addMailParams($hParams,$hRegionalParams);
Example
my $LineItems = $Order->get('LineItemContainer')->get('Positions');
$_->addMailParams(\%MailParams, \%RegionalParams) foreach @$LineItems;
Input
$hParams (ref.hash:)
MailParams
$hRegionalParams (ref.hash)
RegionalParams

addQuantityToStock

Does not increase the stock level.

Syntax
$LineItemProductAppointment->addQuantityToStock;

clearMail

Deletes the 'vCalendar.ics' file and its directory

Syntax
$LineItem->clearMail($hParams,$hRegionalParams);
Example
my $LineItems = $Order->get('LineItemContainer')->get('Positions');
$_->clearMail(\%MailParams, \%RegionalParams) foreach @$LineItems;
Input
$hParams (ref.hash:)
MailParams
$hRegionalParams (ref.hash)
RegionalParams

default

Fills Qantity and TimeFactor.

Syntax
$Package->default($Parent, $hInfo);
Input
$Parent (object:)
parent
$hInfo (ref.hash)
line item info :
  • Appointment - appointment - object
  • Product - product - object

recalculate

Calls DE_EPAGES::Product::API::Object::Product::recalculateLineItem to calculate the line item price based on product price and quantity. Updates the LineItemPrice attribute of the line item.

Syntax
$LineItemProduct->recalculate($Container, $hValues);
Input
$Container (object)
line item container
$hValues (ref.hash)
values that have changed

substractQuantityFromStock

Does not reduce the stock level.

Syntax
$LineItemProductAppointment->substractQuantityFromStock;