Share via


PurchTable.initFromPurchAgreementHeader Method

Initiates a PurchTable record with values based on PurchAgreementHeader 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 initFromPurchAgreementHeader(
            PurchAgreementHeader _purchAgreementHeader, 
           [boolean _copyDeliveryLocation, 
            boolean _copyCurrencyCode])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public void initFromPurchAgreementHeader(PurchAgreementHeader _purchAgreementHeader, [boolean _copyDeliveryLocation])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public void initFromPurchAgreementHeader(PurchAgreementHeader _purchAgreementHeader, [boolean _copyDeliveryLocation])

  Microsoft Dynamics AX 2012 (FPK)
          public void initFromPurchAgreementHeader(PurchAgreementHeader _purchAgreementHeader, [boolean _copyDeliveryLocation])

  Microsoft Dynamics AX 2012 (SYS)
          public void initFromPurchAgreementHeader(PurchAgreementHeader _purchAgreementHeader, [boolean _copyDeliveryLocation])

Run On

Called

Parameters

  • _copyDeliveryLocation
    Type: boolean
    When set to true delivery location is copyed from PurchAgreementHeader.
    Default is true.
  • _copyCurrencyCode
    Type: boolean
    When set to true Currency code is copyed from PurchAgreementHeader.
    Default is false.

See Also

Reference

PurchTable Table