Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the cost input amount from accounting distributions in the accounting currency.
Syntax
client server public static Amount getInputAmountFromDistribution(
SourceDocumentLineRecId _sourceDocumentLine,
InventMov_Purch _inventMovement,
AccountingDistributionReferenceRole _accountingDistributionReferenceRole)
Run On
Called
Parameters
- _sourceDocumentLine
Type: SourceDocumentLineRecId Extended Data Type
A source document line for which to get the amount.
- _inventMovement
Type: InventMov_Purch Class
An instance of the inventMov_Puch class.
- _accountingDistributionReferenceRole
Type: AccountingDistributionReferenceRole Enumeration
An account role for which to get the amount
Return Value
Type: Amount Extended Data Type
The cost input amount in the accounting currency.
Exceptions
Exception | Condition |
---|---|
Error | The source relation type of the source document line is not a VendPackingSlipTrans or VendInvoiceInfoLine table. |