Share via


ReleaseUpdateDB60_Vend::createPurchAgreementHeaderFromBO Method [AX 2012]

Creates a PurchAgreementHeader record together with related entities out from a BO header during upgrade.

Syntax

server protected static void createPurchAgreementHeaderFromBO(
    PurchTable _oldBlanketOrder, 
    RefRecId _originatorRecId, 
    RefRecId _buyingLegalEntityRecId, 
    PurchAgreementHeader _newPurchAgreementHeader, 
    AgreementClassification _agreementClassification, 
    date _effectiveDate, 
    date _expirationDate, 
    Map _tableId2FKDataAreaId)

Run On

Server

Parameters

  • _oldBlanketOrder
    Type: PurchTable Table
    A valid buffer that contains BO header fields.
  • _agreementClassification
    Type: AgreementClassification Table
    The valid instance of the AgreementClassification entity to use in a new agreement.
  • _effectiveDate
    Type: date
    The requested effective date value.
  • _expirationDate
    Type: date
    The requested expiration date value.
  • _tableId2FKDataAreaId
    Type: Map Class
    A map that contains the DataAreaId values to use in foreign keys.

Remarks

Used by upgrade job.

See Also

Reference

ReleaseUpdateDB60_Vend Class