Share via


LedgerVoucherTransObject::newTransLedgerJournal Method [AX 2012]

Creates a new LedgerVoucherTransObject object that is based on a specified LedgerJournalTrans record.

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 LedgerVoucherTransObject newTransLedgerJournal(
            LedgerJournalTrans _ledgerJournalTrans, 
           [TaxAmount _taxAmount, 
            boolean _bridging, 
            container _intercompanyRecIds, 
            boolean _reversalsMayExist])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static LedgerVoucherTransObject newTransLedgerJournal(
            LedgerJournalTrans _ledgerJournalTrans, 
           [TaxAmount _taxAmount, 
            boolean _bridging, 
            container _intercompanyRecIds, 
            boolean _reversalsMayExist])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static LedgerVoucherTransObject newTransLedgerJournal(
            LedgerJournalTrans _ledgerJournalTrans, 
           [TaxAmount _taxAmount, 
            boolean _bridging, 
            container _intercompanyRecIds])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static LedgerVoucherTransObject newTransLedgerJournal(
            LedgerJournalTrans _ledgerJournalTrans, 
           [TaxAmount _taxAmount, 
            boolean _bridging, 
            container _intercompanyRecIds])

  Microsoft Dynamics AX 2012 (SYS)
          client server public static LedgerVoucherTransObject newTransLedgerJournal(
            LedgerJournalTrans _ledgerJournalTrans, 
           [TaxAmount _taxAmount, 
            boolean _bridging, 
            container _intercompanyRecIds])

Run On

Called

Parameters

  • _taxAmount
    Type: TaxAmount Extended Data Type
    The tax amount to deduct from the regular amount of the LedgerJournalTrans record; optional.
  • _bridging
    Type: boolean
    A Boolean value that indicates whether the transaction will be bridged; optional.
  • _intercompanyRecIds
    Type: container
    A container that contains the record IDs of the LedgerJournalTrans records that are for intercompany accounts.
  • _reversalsMayExist
    Type: boolean
    A Boolean value that indicates whether reversals may exist for the LedgerJournalTrans record; optional.

Return Value

Type: LedgerVoucherTransObject Class
A new LedgerVoucherTransObject object.

Remarks

The _reversalsMayExist parameter should only be set to false if the caller has already verified that reversals do not exist for the LedgerJournalTrans record.

See Also

LedgerVoucherTransObject Class

LedgerJournalTrans Table