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