Quintiq file version 2.0
|
#parent: #root
|
DeclarativeOwningNMRelation CalcUnitAccountInPeriodForLot
|
{
|
#keys: '1[127856.0.50549554]'
|
Expression:
|
[*
|
ups := construct( UnitPeriods );
|
|
if( this.CostDriver() = Translations::MP_AccountAssignmentCostDriverLot() )
|
{
|
// Do not filter the unit period that HasPeriodTaskForCost calculation.
|
// Optimizer will take in all unit periods.
|
ups := selectset( this, Unit.PlanningUnitPeriod, up, true );
|
}
|
|
return &ups;
|
*]
|
HelperRelation: UnitPeriod
|
InstantiationType: UnitAccountInPeriodForLot
|
Relation: UnitAccountInPeriodForLot
|
}
|