Quintiq file version 2.0
|
#parent: #root
|
Function CalcBaseCost
|
{
|
TextBody:
|
[*
|
// soh yee Dec-22-2013 (created)
|
cost := 0.0;
|
costwithinhorizon := 0.0;
|
|
if ( this.MacroPlan().IsNeedCostComputed() )
|
{
|
if( this.CostDriver() = Translations::MP_AccountAssignmentCostDriverSales() )
|
{
|
this.GetBaseCostForSales( cost, costwithinhorizon );
|
}
|
else if( this.IsInventoryValue() ) //inventory value including WIP
|
{
|
this.GetBaseCostForInventoryValue( cost, costwithinhorizon );
|
}
|
else if( this.IsInventoryHolding() ) //inventory holding cost including WIP
|
{
|
this.GetBaseCostForInventoryHolding( cost, costwithinhorizon );
|
}
|
else if( this.IsInventorySupply() ) //inventory supply
|
{
|
this.GetBaseCostForInventorySupply( cost, costwithinhorizon );
|
}
|
}
|
|
this.BaseCost( cost );
|
this.BaseCostWithinKPIHorizon( costwithinhorizon );
|
*]
|
}
|