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
32
33
34
35
36
37
38
39
| Quintiq file version 2.0
| #parent: #root
| Method Update (
| DateTime arrival,
| String description,
| String originstockingpointid,
| String deststockingpointid,
| Real feedbackquantity,
| String laneid,
| String productid,
| Boolean isfromdb
| )
| {
| Description: 'Update all the attributes except id and synchronize'
| TextBody:
| [*
| // Update feedback trip
|
| this.Arrival( arrival );
| this.Update( feedbackquantity, description, isfromdb );
| this.UpdateForeignKey( laneid, originstockingpointid, deststockingpointid, productid );
|
| // skip sync in importing, it will be done in post process InitializeFeedbackAfterImport
| if( not this.MacroPlan().IsImporting() )
| {
| // propagate relation to determine if any matching PIT, if not resync
| Transaction::Transaction().Propagate( relation( FeedbackProductInTrip, ProductInTrip ) );
| isneedsync := isnull( this.ProductInTrip() );
|
| if( isneedsync )
| {
| fpits := construct( FeedbackProductInTrips );
| fpits.Add( this );
|
| FeedbackProductInTrip::Synchronize( fpits );
| }
| }
| *]
| }
|
|