Quintiq file version 2.0
|
#parent: #root
|
Method GetBaseOneTimeCost (
|
const AccountAssignment aa,
|
const UnitPeriod unitperiod
|
) const declarative remote as Real
|
{
|
Description: 'Returns the one time cost for the given assignment and unit period'
|
TextBody:
|
[*
|
value := 0.0;
|
|
accountcost := this.GetCost( aa, unitperiod );
|
|
if( not isnull( accountcost ) )
|
{
|
cost := accountcost.Cost();
|
|
if( cost > 0 )
|
{
|
value := cost * guard( unitperiod.CurrencyInPeriod().Rate(), 1.0 );
|
}
|
}
|
|
return value;
|
*]
|
}
|