Quintiq file version 2.0
|
#parent: #root
|
Method Edit (
|
internal[GUIComponent] parent,
|
FulfillmentRestriction selection
|
) id:Method_DialogCreateEditFulfillmentRestriction_Edit
|
{
|
#keys: '[123718.0.364072433]'
|
Body:
|
[*
|
// Edit fulfillment restriction
|
data := shadow( selection );
|
|
Dialog.Data( data );
|
|
CheckBoxHasStart.Checked( data.StartDate().IsFinite() );
|
CheckBoxHasEnd.Checked( data.EndDate().IsFinite() );
|
|
if ( Dialog.DoModal( parent ) > 0 )
|
{
|
selection.Update( SelectionSalesSegment.Data().Name(),
|
SelectionProduct.Data().ID(),
|
GUIDateTimeSelectorStartDate.DateTime().Date(),
|
GUIDateTimeSelectorEndDate.DateTime().Date() );
|
data.Commit();
|
}
|
*]
|
}
|