Quintiq file version 2.0 #parent: #root Method SetDefaultValue ( ProductInStockingPointInPeriodPlanning pispip ) id:Method_DialogCreateEditPostponedSalesDemandCost_SetDefaultValue { #keys: '[107528.0.138373260]' Body: [* // Set the default value for the fields in the dialog data := Dialog.Data(); // Assigning value to Read-Only attribute will result in runtime error. if( isnull( data.WrappedInstance() ) ) { data.Start( guard( pispip.Start().Date(), MacroPlan.StartOfPlanningPeriod().StartDate() ) ); } data.Penalty( guard( pispip.PostponedSalesDemandCost().Penalty(), 0 ) ); *] }