lazhen
2024-10-10 ae3b7f21551deb0e163eb5dbd4bea0a70bd54c50
1
2
3
4
5
6
7
8
9
10
11
12
13
Quintiq file version 2.0
#parent: #root
DeclarativeReferenceRelation CalcNewSupply
{
  #keys: '1[110880.9.463903608]'
  Expression:
  [*
    // NewSupply are always linked to the Last period task of the Trip.
    return select( this, Trip.LastPeriodTaskLaneLeg.NewSupply, ns,
                   ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().Product_MP() = this.Product_MP() );
  *]
  Relation: NewSupply
}