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
| Quintiq file version 2.0
| #parent: #root
| StaticMethod CreateIfNotExistByTree (
| MPSync mpSync,
| String id,
| String name,
| String parentId,
| String UOMName,
| String currencyId,
| Date startDate,
| Date endDate,
| String capacityType
| ) as IOUnit
| {
| TextBody:
| [*
| // yypsybs Sep-6-2023 (created)
| value := IOUnit::FindById( mpSync, id );
| if( isnull( value ) ) {
| value := mpSync.IOUnit( relnew,
| ID := id,
| Name := name,
| ParentUnitID := parentId,
| UnitOfMeasureName := UOMName,
| CurrencyID := currencyId,
| StartDate := startDate,
| EndDate := endDate,
| CapacityType := capacityType );
| }
| return value;
| *]
| }
|
|