Quintiq file version 2.0
|
#parent: #root
|
Method SetAttributesAfterOnApplyData () id:Method_DialogEditGlobalParameter_SetAttributesAfterOnApplyData
|
{
|
#keys: '[110880.3.2064223805]'
|
Body:
|
[*
|
// Set values to the shadow instance
|
|
data := Dialog.Data();
|
|
// If the attribute is not checked, set it to zero
|
if( not data.HasDefaultInventoryHoldingCost() )
|
{
|
data.DefaultAccountForInventoryHolding( '' );
|
data.DefaultAnnualInterestRateForInventoryHolding( 0 );
|
}
|
else if( data.HasAbsoluteValueForInventoryHolding() )
|
{
|
data.DefaultAnnualInterestRateForInventoryHolding( 0 );
|
}
|
else
|
{
|
data.DefaultAbsoluteValueForInventoryHolding( 0 );
|
}
|
*]
|
}
|