sln Function

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Retrieves the constant depreciation amount for the specified asset for each depreciation period.

real sln(real price, real scrap, real life)

Parameters

Parameter

Description

price

The purchase price of the asset.

scrap

The scrap value of the asset.

life

The number of periods in the expected life of the asset.

Return Value

The depreciation amount.

Example

static void slnExample(Args _arg)
{
    real r;
    ;
    r = sln(100.00, 50.00, 50.00);
    print r;
    pause;
}

See also

ddb Function

syd Function

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).