BudgetSourceSourceDocumentLine::copyBudgetSource Method [AX 2012]

Creates copies of the BudgetSource records for a collection of SourceDocumentLine records, based on the BudgetSource records for another collection of SourceDocumentLine records.

Syntax

server public static void copyBudgetSource(container _packedFromAndToSourceDocumentLinePairs)

Run On

Server

Parameters

  • _packedFromAndToSourceDocumentLinePairs
    Type: container
    A collection of pairs that consist of the record ID of the SourceDocumentLine record for the BudgetSource record to copy from and the record ID of the SourceDocumentLine record for the BudgetSource record copy to create.

Remarks

Use this method only to maintain the budget check results when copies of SourceDocumentLine records are created. This method copies the overall budget check result and the budget check result details. No other details are copied. The _packedFromAndToSourceDocumentLinePairs parameter must be a packed map, where the key is from the SourceDocumentLine record ID and the value is the SourceDocumentLine record ID.

See Also

Reference

BudgetSourceSourceDocumentLine Class