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
| Quintiq file version 2.0
| #parent: #root
| Method Update (
| Product_MP owner,
| StockingPoint_MP stockingpoint,
| Date start,
| Real factor,
| Boolean isfromdb
| )
| {
| Description: 'Update PISP disaggregation factor.'
| TextBody:
| [*
| this.UpdateTypeIndex( owner.ID(), stockingpoint.ID(), start );
|
| needsync := this.Product_MP() <> owner
| or this.StockingPoint_MP() <> stockingpoint
|
| if( needsync )
| {
| owner.DisaggregationFactor( relmove, this );
|
| // create pisp when there is changes to prodcut / stocking point
| owner.AddToStockingPoint( stockingpoint );
| }
|
| this.IsManuallyConfigured( not isfromdb )
| this.Factor( factor );
| *]
| }
|
|