Quintiq file version 2.0
|
#parent: #root
|
Method UpdatePISPSpecification (
|
String productID,
|
String stockingpointID,
|
Boolean keepsafetystock
|
)
|
{
|
TextBody:
|
[*
|
pispspec := PISPSpecification::FindPISPSpecificationTypeIndex( productID, stockingpointID );
|
|
if ( isnull( pispspec ) )
|
{
|
product := Product_MP::FindProductTypeIndex( productID );
|
stockingpoint := StockingPoint_MP::FindStockingPointTypeIndex( stockingpointID );
|
|
if( not isnull( product ) and not isnull( stockingpoint ) )
|
{
|
pispspec := PISPSpecification::Create( product, stockingpoint );
|
}
|
}
|
|
if( not isnull( pispspec ) and not pispspec.IsSafetyStockKept() )
|
{
|
pispspec.IsSafetyStockKept( keepsafetystock );
|
}
|
*]
|
}
|