Quintiq file version 2.0
#parent: #root
Method OnOK () id:Method_DialogCreateEditSupplyCost_OnOK
{
  #keys: '[145730.1.1199837284]'
  Body:
  [*
    // OnOK logic to create/update supply cost
    isFromDB := false;
    
    inventoryCosts := DataHolderDialogDatas.Data();
    
    // Create or update (cost date follows inventory supply date)
    InventorySupplyCost::CreateUpdate( inventoryCosts,
                                       DataHolderOwners.Data(),
                                       ddlAccount.Data(),
                                       ddlAccount.Data().DefaultCostDriver(),
                                       CheckboxBatchEditCost.Checked(), ApplicationMacroPlanner.FormatStringToReal( EditFieldCost.Text() ),
                                       isFromDB );
    
    this.Close();
  *]
}
