InventCostInputAmount::getInputAmountFromDistribution_RU Method [AX 2012]
Gets the cost input amount from accounting distributions in the specified currency.
Syntax
client server public static Amount getInputAmountFromDistribution_RU(
SourceDocumentLineRecId _sourceDocumentLine,
InventMov_Purch _inventMovement,
AccountingDistributionReferenceRole _accountingDistributionReferenceRole,
CurrencyCode _currencyCode)
Run On
Called
Parameters
- _sourceDocumentLine
Type: SourceDocumentLineRecId Extended Data Type
The SourceDocumentLine record to get the amount for.
- _inventMovement
Type: InventMov_Purch Class
An instance of the inventMov_Puch class.
- _accountingDistributionReferenceRole
Type: AccountingDistributionReferenceRole Enumeration
The AccountRole value to get the amount for.
- _currencyCode
Type: CurrencyCode Extended Data Type
The currency to receive the result in.
Return Value
Type: Amount Extended Data Type
The cost input amount in the specified currency.
Exceptions
Exception | Condition |
---|---|
Error | The SourceRelationType value of the SourceDocumentLine record is not a VendPackingSlipTrans or VendInvoiceInfoLine table. |