ProjPost::newTransAdjNegativeTrans Method [AX 2012]

Retrieves a new instance of the ProjPost object to use to post negative adjustment ledger entries.

server public static ProjPost newTransAdjNegativeTrans(
    ProjCostTrans _projCostTrans, 
    LedgerVoucher _ledgerVoucher, 
    ProjTransIdBase _transId)

Run On

Server

Parameters

_projCostTrans
Type: ProjCostTrans Table
The table for the transaction type.
_ledgerVoucher
Type: LedgerVoucher Class
The ledger items to use to post.
_transId
Type: ProjTransIdBase Extended Data Type
The transaction identifier for the original transaction.

Return Value

Type: ProjPost Class
A new ProjPost object for the adjustment posting.

This method is only valid for the ProjCostTrans table and the ProjItemTrans table. Any other table that is passed in the _buffer parameter will cause an exception: project posting is not implemented for this type.

Show: