1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| Quintiq file version 2.0
| #parent: #root
| Method CreateProductInStockingPointInPeriod (
| Boolean iscreateall
| )
| {
| Description: 'Create product in stocking point in period for all pisp and periods'
| TextBody:
| [*
| isupdateforshelflifeoptimizer := this.GetIsPeriodUpdateForShelfLifeOptimizer();
|
| pisp := selectset( this, Product_MP.ProductInStockingPoint_MP, pisp , ( not isupdateforshelflifeoptimizer ) or pisp.IsOptShelfLife() or pisp.IsOptMaturation() );
|
| //only create for newly created periods
| periods := selectset ( this, Period_MP, period,
| iscreateall or period.ProductInStockingPointInPeriod( relsize ) = 0 );
|
| this.CreateProductInStockingPointInPeriod( pisp, periods, false /*isondelete*/ );
| *]
| }
|
|