Quintiq file version 2.0
|
#parent: #root
|
StaticMethod Update (
|
PostponementSpecifications postponementspecifications_i,
|
SalesSegment_MP salessegment,
|
Boolean batchedithorizon,
|
String horizontimeunit_i,
|
Number horizonnroftimeunit_i,
|
Boolean batcheditmaximum,
|
String maxtimeunit_i,
|
Number maxnroftimeunit_i
|
)
|
{
|
Description: 'Do batch update of PostponementSpecification'
|
TextBody:
|
[*
|
traverse( postponementspecifications_i, Elements, ps )
|
{
|
// Exception on batch edit
|
if( postponementspecifications_i.Size() > 1 )
|
{
|
// No change on SalesSegment on batch edit
|
salessegment := ps.SalesSegment_MP();
|
|
if( not batchedithorizon )
|
{
|
horizontimeunit_i := ps.HorizonTimeUnit();
|
horizonnroftimeunit_i := ps.HorizonNrOfTimeUnit();
|
}
|
|
if( not batcheditmaximum )
|
{
|
maxtimeunit_i := ps.MaxTimeUnit();
|
maxnroftimeunit_i := ps.MaxNrOfTimeUnit();
|
}
|
}
|
|
ps.Update( salessegment,
|
horizontimeunit_i,
|
horizonnroftimeunit_i,
|
maxtimeunit_i,
|
maxnroftimeunit_i,
|
false );
|
}
|
*]
|
}
|