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
| Quintiq file version 2.0
| #parent: #root
| StaticMethod ResetSupplies (
| ProductInStockingPointInPeriods pispips,
| Boolean resetmanual,
| Boolean resetoptimizer
| )
| {
| Description: 'Reset period task based on the selected product in stocking point in period.'
| TextBody:
| [*
|
| // DWE2 Jan-21-2016 (modified)
| traverse( pispips, Elements, pispip )
| {
| traverse( pispip.GetLeafPISPIPs(), Elements.astype( ProductInStockingPointInPeriodPlanningLeaf ).NewSupply, ns )
| {
| ns.Reset( resetmanual, resetoptimizer );
| }
|
| if( resetmanual )
| {
| pispip.UpdateTotalSupplyUser( false, 0.0 );
| pispip.UpdateTotalAvailableSupplyUser( false, 0.0 );
| }
| }
| *]
| }
|
|