yypsybs
2023-10-10 550ebcf02217f8a0c6fe9001fcfa8e42e9cd6b83
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
Quintiq file version 2.0
#parent: #root
Method EditDisaggregationFactor (
  structured[DisaggregationFactor] selection,
  internal[GUIComponent] parent
) id:Method_DialogCreateEditDisaggregationFactor_EditDisaggregationFactor
{
  #keys: '[124808.0.1994363472]'
  Body:
  [*
    // Edit inventory values
    isbatchedit := selection.Size() > 1;
    this.EnableDisableComponent( isbatchedit, true );
    
    
    data := shadow( selection.Element( 0 ) );
    Dialog.Data( data );
    
    result := this.DoModal( parent );
    
    if( result > 0 )
    {
      DisaggregationFactor::Update( selection,
                                    data.Product_MP(),
                                    data.StockingPoint_MP(),
                                    GUIDateTimeSelectorStart.DateTime().Date(),
                                    data.Factor() );
    }
  *]
}