Quintiq file version 2.0 
 | 
#parent: #root 
 | 
StaticMethod Create ( 
 | 
  ProductInTrip productintrip, 
 | 
  Real feedbackquantity, 
 | 
  String description, 
 | 
  Boolean isfromdb 
 | 
) as FeedbackProductInTrip 
 | 
{ 
 | 
  Description: 'Create new feedback product in trip.' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // desmondt Aug-11-2015 (created) 
 | 
     
 | 
    macroplan := productintrip.MacroPlan(); 
 | 
    laneleg := productintrip.Trip().LaneLeg(); 
 | 
     
 | 
    fpit := laneleg.MacroPlan().Feedback( relnew, 
 | 
                                          FeedbackProductInTrip, 
 | 
                                          ID := macroplan.IDHolder().GetFeedbackID(), 
 | 
                                          Arrival := productintrip.Trip().Arrival(), 
 | 
                                          ProductID := productintrip.ProductID(), 
 | 
                                          LaneID := laneleg.LaneID(), 
 | 
                                          OriginStockingPointID := laneleg.OriginStockingPointID(), 
 | 
                                          DestinationStockingPointID := laneleg.DestinationStockingPointID() ); 
 | 
     
 | 
    fpit.Update( feedbackquantity, description, isfromdb ); 
 | 
     
 | 
    return fpit; 
 | 
  *] 
 | 
} 
 |