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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
| Quintiq file version 2.0
| #parent: #root
| Method InitialUnitAndStockingPoint
| {
| TextBody:
| [*
| // Administrator Sep-1-2023 (created)
|
| unitOfMeasure_MP := UnitOfMeasure_MP::FindByName( this, "PCS" );
| if ( isnull( unitOfMeasure_MP ) ) {
| unitOfMeasure_MP := UnitOfMeasure_MP::Create( this, "PCS", false, false );
| }
|
| //Set the Default values
| unitofmeasurename := "PCS";
| capacitytype := "Transport quantity";
|
| if ( isnull( Unit::FindById( this, "空运" ) ) ) {
| Unit::Create( "空运", this, "空运", unitOfMeasure_MP, null( Unit ), capacitytype, "", null( SupplyChainView ), 0, 0, false );
| }
|
| if ( isnull( Unit::FindById( this, "库存事务处理" ) ) ) {
| Unit::Create( "库存事务处理", this, "库存事务处理", unitOfMeasure_MP, null( Unit ), capacitytype, "", null( SupplyChainView ), 0, 0, false );
| }
|
| unitofmeasurename := "PCS";
|
| if ( isnull( StockingPoint_MP::FindById( this, "F13_FG_STOCK" ) ) ) {
| StockingPoint_MP::Create( "F13_FG_STOCK", this, null( Unit ), "F13_FG_STOCK", null( SupplyChainView ), 0, 0, false );
| }
|
| if ( isnull( StockingPoint_MP::FindById( this, "H10_SA_STOCK" ) ) ) {
| StockingPoint_MP::Create( "H10_SA_STOCK", this, null( Unit ), "H10_SA_STOCK", null( SupplyChainView ), 0, 0, false );
| }
|
| if ( isnull( StockingPoint_MP::FindById( this, "Q10_FG_STOCK" ) ) ) {
| StockingPoint_MP::Create( "Q10_FG_STOCK", this, null( Unit ), "Q10_FG_STOCK", null( SupplyChainView ), 0, 0, false );
| }
|
| if ( isnull( Currency_MP::FindById( this, "CNY" ) ) ) {
| Currency_MP::Create( "CNY", this, "CNY", "", false, false );
| }
|
| isproductcatagory := false;
| isfromdb := false;
| if ( isnull( ProductLevel_MP::FindProductLevelTypeIndex( "1" ) ) ) {
| ProductLevel_MP::Create( "1", isproductcatagory, this, isfromdb );
| }
| if ( isnull( ProductLevel_MP::FindProductLevelTypeIndex( "2" ) ) ) {
| ProductLevel_MP::Create( "2", isproductcatagory, this, isfromdb );
| }
| if ( isnull( ProductLevel_MP::FindProductLevelTypeIndex( "3" ) ) ) {
| ProductLevel_MP::Create( "3", isproductcatagory, this, isfromdb );
| }
| *]
| }
|
|