1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| Quintiq file version 2.0
| #parent: #root
| Method GetSalesDemandInPeriod (
| ProductInStockingPointInPeriod pispip
| ) as SalesDemandInPeriod
| {
| Description: 'Given a product in stocking point in period, return sales demand in period which is related to the given PISPIP.'
| TextBody:
| [*
| // desmondt Nov-5-2015 (modified)
| object := select( this,
| SalesDemandInPeriod,
| sdip,
| pispip = sdip.AsSalesDemandInPeriodBase(),
| not sdip.IsPostponed() );
|
| if( isnull( object ) )
| {
| if( pispip.ProductInStockingPoint_MP().IsLeaf() )
| {
| object := LeafSalesDemandInPeriod::Create( this, pispip, 0.0, false );
| }
| else
| {
| object := AggregatedSalesDemandInPeriod::Create( this, pispip, 0.0, false );
| }
| }
| return object;
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|