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
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method ValidateInput ( 
 |    output String feedback_o 
 |  ) as Boolean id:Method_DialogCreateEditSupplyCost_ValidateInput 
 |  { 
 |    #keys: '[145730.1.1215147582]' 
 |    Body: 
 |    [* 
 |      // Validate supply cost uniqueness when create/edit 
 |      account := guard( ddlAccount.Data(), null( Account_MP ) ); 
 |      costDriver := guard( account.DefaultCostDriver(), '' ); 
 |      sanityfb := ''; 
 |      InventorySupplyCost::ValidateInput( feedback_o, 
 |                                          sanityfb, 
 |                                          account, 
 |                                          costDriver, 
 |                                          dsContentDate.Date(), 
 |                                          '', // Irrelevant for supply cost 
 |                                          1, // Irrelevant for supply cost 
 |                                          ApplicationMacroPlanner.FormatStringToReal( EditFieldCost.Text() ), 
 |                                          DataHolderOwners.Data(), 
 |                                          DataHolderDialogDatas.Data() ); 
 |                                           
 |       
 |       
 |      return feedback_o = ''; 
 |    *] 
 |  } 
 |  
  |