Quintiq file version 2.0
|
#parent: #root
|
Method GetFixedBaseCost (
|
const AccountAssignment aa,
|
const AccountCost accountcost
|
) declarative remote as Real
|
{
|
Description: 'Calculate the fixed cost'
|
TextBody:
|
[*
|
// ying ying Nov-22-2013 (created)
|
|
//if accountcost has been passed in, we will skip this
|
value := 0.0;
|
|
if( isnull( accountcost ) )
|
{
|
accountcost := this.GetUnitCost( aa );
|
}
|
|
if( not isnull( accountcost ) and accountcost.Start() <= this.StartDate() )
|
{
|
value := accountcost.Cost()
|
* guard( this.CurrencyInPeriod().Rate(), 1.0 )
|
* PeriodSpecification_MP::GetLengthOfTimeAndTimeUnitRatio( this, accountcost );
|
}
|
|
return value;
|
*]
|
}
|