Quintiq file version 2.0
#parent: ListDisaggregatedSalesDemandInPeriod
Response OnClick (
  structured[BaseSalesDemandInPeriod] selection
) id:Response_ListDisaggregatedSalesDemandInPeriod_MenuPostponePSDIP_OnClick
{
  #keys: '[116826.1.30109267]'
  Body:
  [*
    // Postpone sales demands
    bsdip := null( BaseSalesDemandInPeriod );
    
    dlg := construct( DialogPostponeSalesDemandInPeriod );
    bsdip := dlg.Postpone( selection,
                           DataHolderPostponementPeriods.Data(),
                           this );
    
    ApplicationLibMacroPlanner.AutoExpandSelection( this, bsdip );
  *]
  CanBindMultiple: false
  DefinitionID => /ListDisaggregatedSalesDemandInPeriod/Responsedef_ListDisaggregatedSalesDemandInPeriod_Menu_OnClick
  Initiator: 'MenuPostponePSDIP'
  Precondition:
  [*
    return SalesDemandInPeriod::CanPostpone( selection,
                                             DataHolderPostponementPeriods.Data(),
                                             feedback );
  *]
}
