AccountingDistributionRule::newRule Method [AX 2012]
Creates a new accounting distribution rule for the specified monetary amount of a source document line item.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
client server public static AccountingDistributionRule newRule(
SourceDocumentLineItem _sourceDocumentLineItem,
MonetaryAmount _monetaryAmount,
[AccountingPolicy _accountingPolicy])
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static AccountingDistributionRule newRule(
SourceDocumentLineItem _sourceDocumentLineItem,
MonetaryAmount _monetaryAmount,
[AccountingPolicy _accountingPolicy])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
client server public static AccountingDistributionRule newRule(SourceDocumentLineItem _sourceDocumentLineItem, MonetaryAmount _monetaryAmount)
Microsoft Dynamics AX 2012 (FPK)
client server public static AccountingDistributionRule newRule(SourceDocumentLineItem _sourceDocumentLineItem, MonetaryAmount _monetaryAmount)
Microsoft Dynamics AX 2012 (SYS)
client server public static AccountingDistributionRule newRule(SourceDocumentLineItem _sourceDocumentLineItem, MonetaryAmount _monetaryAmount)
Run On
Called
Parameters
- _sourceDocumentLineItem
Type: SourceDocumentLineItem Class
The source document line item.
- _monetaryAmount
Type: MonetaryAmount Enumeration
The monetary amount.
- _accountingPolicy
Type: AccountingPolicy Class
Return Value
Type: AccountingDistributionRule Class
A new instance of the AccountingDistributionRule object.