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
| Quintiq file version 2.0
| #parent: #root
| StaticMethod CreateIfNotExist (
| GlobalOTDSOP parent,
| Number serialNumber,
| String businessType,
| String matCode,
| String matName,
| String matType,
| Real matArrivalLT,
| String flagGeneric,
| String flagLongTerm
| ) as MatAttrSettingAndPlanStrategy
| {
| TextBody:
| [*
| // yypsybs Sep-8-2023 (created)
| value := MatAttrSettingAndPlanStrategy::GetExistByMatCode( parent, matCode );
| if( isnull( value ) ) {
| value := parent.MatAttrSettingAndPlanStrategy( relnew,
| SerialNumber := serialNumber,
| BusinessType := businessType,
| MatCode := matCode,
| MatName := matName,
| MatType := matType,
| MatArrivalLT := matArrivalLT,
| FlagGeneric := flagGeneric,
| FlagLongTerm := flagLongTerm,
| PlanningStrategyCustom := "",
| UpdateBy := "",
| UpdateTime := DateTime::MinDateTime() );
| }
| return value;
| *]
| }
|
|