Share via


LedgerVoucherTransObject.addTaxTransRelationship Method [AX 2012]

Adds a relationship to the specified TaxTrans 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
          public void addTaxTransRelationship(
            TaxTransRecId _taxTransRecId, 
            TaxTransRelationshipType _taxRelationshipType, 
           [CompanyId _companyId])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public void addTaxTransRelationship(TaxTransRecId _taxTransRecId, TaxTransRelationshipType _taxRelationshipType)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public void addTaxTransRelationship(TaxTransRecId _taxTransRecId, TaxTransRelationshipType _taxRelationshipType)

  Microsoft Dynamics AX 2012 (FPK)
          public void addTaxTransRelationship(TaxTransRecId _taxTransRecId, TaxTransRelationshipType _taxRelationshipType)

  Microsoft Dynamics AX 2012 (SYS)
          public void addTaxTransRelationship(TaxTransRecId _taxTransRecId, TaxTransRelationshipType _taxRelationshipType)

Run On

Called

Parameters

Exceptions

Exception Condition
Error

The ID of the TaxTrans record is zero.

Error

The ID of the TaxTrans record is zero.

Error

The record ID of the TaxTrans record is zero.

-or-

The company ID is an empty string.

See Also

Reference

LedgerVoucherTransObject Class