dg Function [AX 2012]

Updated: December 11, 2009

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

Calculates the contribution ratio, which is based on the sales price and the purchase price.

NoteNote

If the value of the sale parameter is 0.0, the calculation cannot be made.


real dg(real sale, real purchase)

Parameter

Description

sale

The sale price.

purchase

The purchase price.

The contribution ratio.

  • dg(1000,300); //Returns the value 0.7.

  • dg(100,30); //Returns the value 0.7.

  • dg(20000, 11000); //Returns the value 0.45.


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

Community Additions

ADD
Show: