Quintiq file version 2.0
|
#parent: #root
|
Method Update (
|
Boolean hastargetindays,
|
Real targetindays,
|
Real targetinquantity,
|
Boolean iscalculated,
|
Boolean hasUserTarget,
|
Boolean isfromdb
|
)
|
{
|
Description: 'Update safety stock'
|
TextBody:
|
[*
|
|
this.HasTargetInDays( hastargetindays )
|
this.IsCalculated( iscalculated );
|
|
if ( iscalculated and not hasUserTarget )
|
{
|
this.OptimizerTargetInQuantity( targetinquantity );
|
}
|
if ( hasUserTarget )
|
{
|
if( hastargetindays )
|
{
|
this.UserTargetInQuantity( 0 );
|
this.UserTargetInDays( targetindays );
|
}
|
else
|
{
|
this.UserTargetInQuantity( targetinquantity );
|
this.UserTargetInDays( 0 );
|
}
|
}
|
|
this.HasUserTarget( hasUserTarget );
|
this.IsManuallyConfigured( not isfromdb );
|
*]
|
InterfaceProperties { Accessibility: 'Module' }
|
}
|