| Quintiq file version 2.0 | 
| #parent: #root | 
| Method New ( | 
|   structured[InventorySupply] owners, | 
|   Account_MP account | 
| ) id:Method_DialogCreateEditSupplyCost_New | 
| { | 
|   #keys: '[145730.1.1201010370]' | 
|   Body: | 
|   [* | 
|     // Method to populate form data when batch create | 
|     owner := owners.First(); | 
|      | 
|     account := MacroPlan.GetDefaultAccount( Form.GetCostType() ); | 
|      | 
|     shadowCost := owner.InventorySupplyCost( relshadow, | 
|                                              ID := MacroPlan.IDHolder().GetInventorySupplyCostID(), | 
|                                              Account_MP := account, | 
|                                              AccountName := account.Name(), | 
|                                              CostDriver := account.DefaultCostDriver(), | 
|                                              Cost :=  account.DefaultCost() ); | 
|     // Set bottom read-only panel data | 
|     pnlContent.SetInventorySupply( shadow(owner) ); | 
|      | 
|     // Set dialog data | 
|     DataHolderDialogData.Data( &shadowCost ); | 
|     DataHolderOwners.Data( owners.Copy() ); | 
|      | 
|     // Initialize dialog | 
|     this.Initialize(); | 
|   *] | 
| } |