| 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
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod CreateCustomOrder ( |  |   MacroPlan macroPlan, |  |   FillingCapacityOrder fillingCapacityOrder, |  |   Real quantity |  | ) as CustomerOrder |  | { |  |   TextBody: |  |   [* |  |     targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = fillingCapacityOrder.ProductID() ); |  |     targetStockingPoint_MP := select( macroPlan, StockingPoint_MP, tempSPMP, tempSPMP.ID() = fillingCapacityOrder.StockingPointID() ); |  |      |  |     targetCustomerOrder := CustomerOrder::Create( targetProduct_MP, |  |                                                   targetStockingPoint_MP, |  |                                                   OS::GenerateGUIDAsString(), |  |                                                   fillingCapacityOrder.DemandDate(), |  |                                                   quantity, |  |                                                   0.0, |  |                                                   "Normal", |  |                                                   fillingCapacityOrder.SalesSegmentName(), |  |                                                   fillingCapacityOrder.CurrencyID(), |  |                                                   fillingCapacityOrder.UnitOfMeasureName(), |  |                                                   false, |  |                                                   fillingCapacityOrder.Customer(), |  |                                                   fillingCapacityOrder.CustomerID(), |  |                                                   "", |  |                                                   "", |  |                                                   true, |  |                                                   true, |  |                                                   false |  |                                                  ); |  |      |  |     return targetCustomerOrder; |  |   *] |  | } | 
 |