Quintiq file version 2.0
|
#parent: #root
|
Method Update (
|
Product_MP owner,
|
StockingPoint_MP stockingpoint,
|
Date start,
|
Real penalty,
|
Boolean isfromdb
|
)
|
{
|
Description: 'Update a PostponedSalesDemandCost'
|
TextBody:
|
[*
|
// Wayne Apr-17-2013 (created)
|
this.UpdateTypeIndex( owner.ID(), stockingpoint.ID(), start );
|
|
oldpisp := this.ProductInStockingPoint_MP();
|
needsync := oldpisp.Product_MP() <> owner
|
or oldpisp.StockingPoint_MP() <> stockingpoint;
|
|
if( needsync )
|
{
|
owner.PostponedSalesDemandCost( relmove, this );
|
|
// Get new pisp and remove old pisp
|
owner.AddToStockingPoint( stockingpoint );
|
}
|
|
this.Penalty( penalty );
|
this.IsManuallyConfigured( not isfromdb );
|
*]
|
}
|