Quintiq file version 2.0
|
#parent: #root
|
Method SetDefaultInventoryHolding (
|
Boolean hasDefaultInventoryHolding,
|
Boolean hasAbsoluteValue,
|
String defaultAccountName,
|
Real value
|
)
|
{
|
TextBody:
|
[*
|
// Set default inventory holding cost attributes
|
this.HasDefaultInventoryHoldingCost( hasDefaultInventoryHolding );
|
this.HasAbsoluteValueForInventoryHolding( hasAbsoluteValue );
|
this.DefaultAccountForInventoryHolding( defaultAccountName );
|
this.DefaultAbsoluteValueForInventoryHolding( 0.0 );
|
this.DefaultAnnualInterestRateForInventoryHolding( 0.0 );
|
|
if( hasDefaultInventoryHolding )
|
{
|
if( hasAbsoluteValue )
|
{
|
this.DefaultAbsoluteValueForInventoryHolding( value );
|
}
|
else
|
{
|
this.DefaultAnnualInterestRateForInventoryHolding( value );
|
}
|
}
|
|
// Ensure all pisp account is created
|
// Copied from GP.OnCommeit
|
this.UpdateCommitLogic();
|
*]
|
}
|