PurchComplInvoicePost.updateInventPostedValue Method [AX 2012]

Updates the values of the inventoried items in the complementary invoice being posted.

protected void updateInventPostedValue(
    VendInvoiceTrans _vendInvoiceTrans, 
    Amount _amountToAdd, 
    LedgerVoucher _ledgerVoucher)

Run On

Server

Parameters

_vendInvoiceTrans
Type: VendInvoiceTrans Table
VendInvoiceTrans record from the invoice that is being complemented.
_amountToAdd
Type: Amount Extended Data Type
Amount that is being added to the inventory.
_ledgerVoucher
Type: LedgerVoucher Class
LedgerVoucher used to post the inventory amount.

ExceptionCondition
Error

Inventory is closed for the original invoice.

Community Additions

ADD
Show: