1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| Quintiq file version 2.0
| #parent: #root
| StaticMethod GetDefaultOwner (
| MacroPlan macroplan,
| output Product_MP product_o
| ) remote as SalesSegment_MP
| {
| Description: 'Get default owner for new created fulfillment restriction in the Designer'
| TextBody:
| [*
| // Vincent Oct-11-2016 (created)
|
| salessegment := select( macroplan, ActiveSalesLevel.SalesSegment_MP, ss, true );
|
| product_o := select( macroplan, Product_MP, p, p.IsLeaf() and not p.IsSystem() );
|
| return salessegment;
| *]
| }
|
|