Quintiq file version 2.0
|
#parent: #root
|
Method DeleteCostFromBroker
|
{
|
Description: 'Method to remove various cost related attributes from the broker.'
|
TextBody:
|
[*
|
//remove costs from the broker if derived via DB or excel
|
traverse( this.MPSync(), IOUnitCost, e,
|
e.IsSoftDeleted()
|
and ( e.DataSource() <> MPSyncUtility::ID_Source_Message() )
|
)
|
{
|
e.Delete();
|
}
|
//remove operation costs from the broker if derived via DB or excel
|
traverse( this.MPSync(), IOOperationCost, e,
|
e.IsSoftDeleted()
|
and ( e.DataSource() <> MPSyncUtility::ID_Source_Message() )
|
)
|
{
|
e.Delete();
|
}
|
//remove lane costs from the broker if derived via DB or excel
|
traverse( this.MPSync(), IOLaneCost, e,
|
e.IsSoftDeleted()
|
and ( e.DataSource() <> MPSyncUtility::ID_Source_Message() )
|
)
|
{
|
e.Delete();
|
}
|
//remove lane leg costs from the broker if derived via DB or excel
|
traverse( this.MPSync(), IOLaneLegCost, e,
|
e.IsSoftDeleted()
|
and ( e.DataSource() <> MPSyncUtility::ID_Source_Message() )
|
)
|
{
|
e.Delete();
|
}
|
//remove stocking points costs from the broker if derived via DB or excel
|
traverse( this.MPSync(), IOStockingPointCost, e,
|
e.IsSoftDeleted()
|
and ( e.DataSource() <> MPSyncUtility::ID_Source_Message() )
|
)
|
{
|
e.Delete();
|
}
|
//remove product value and costs from the broker if derived via DB or excel
|
traverse( this.MPSync(), IOProductValueAndCost, e,
|
e.IsSoftDeleted()
|
and ( e.DataSource() <> MPSyncUtility::ID_Source_Message() )
|
)
|
{
|
e.Delete();
|
}
|
//remove inventory value and costs from the broker if derived via DB or excel
|
traverse( this.MPSync(), IOInventoryValueAndCost, e,
|
e.IsSoftDeleted()
|
and ( e.DataSource() <> MPSyncUtility::ID_Source_Message() )
|
)
|
{
|
e.Delete();
|
}
|
*]
|
}
|