1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| Quintiq file version 2.0
| #parent: #root
| StaticMethod CreateStockingpointFromJson (
| MacroPlan mp,
| JSON datarow
| ) as StockingPoint_MP
| {
| Description: 'Read the json data and use it to create stockpoint data'
| TextBody:
| [*
| // Administrator Jul-7-2023 (created)
| id := datarow.Get( "id" ).GetString();
| unitid := datarow.Get( "unitid" ).GetString();
| name := datarow.Get( "name" ).GetString();
|
| result := StockingPoint_MP::CreateStockingpoint( mp, id, unitid, name );
|
| return result;
| *]
| }
|
|