Quintiq file version 2.0
|
#parent: #root
|
Method AssignAndCreateCosts (
|
Operations operations
|
)
|
{
|
Description: 'Assigns the account to operations, and create default costs. Used in designer.'
|
TextBody:
|
[*
|
// ying ying Nov-4-2013 (created)
|
traverse( operations, Elements, operation )
|
{
|
accountassignment := this.Assign( operation );
|
|
if( not accountassignment.IsUsed()
|
or not exists( accountassignment.Account_MP(), LeadAccountCostForMatrixRowHeader, lac,
|
lac.OwnerID() = operation.ID() ) )
|
{
|
operation.CreateDefaultCost( this );
|
}
|
}
|
*]
|
}
|