FormLetter class COC method in D365 X++

[ExtensionOf(classStr(PurchFormLetter))]
final class PurchFormLetter_Extension
{
    static container checkParmTable(Num      parmId,
                                           boolean  vendAccountInQuery,
                                           boolean  invoiceAccountInQuery)
    {
        PurchParmTable                  purchParmTable;
        PurchParmLine                    purchParmLine;
        PurchLine                            purchLine
        Container                             loc;
        loc                                        = next checkParmTable(parmId,vendAccountInQuery,invoiceAccountInQuery);

        select PurchId from purchParmTable
            where purchParmTable.ParmId == ParmId;

        select ReqPlanIdSched from purchLine
            where purchLine.PurchId == purchParmTable.PurchId
            && purchLine.ReqPlanIdSched != "";
        //Do rest of the activities
     }
}

Comments

Popular posts from this blog

On clicked event of form button in D365 X++

Finding unit price of item from trade agreement through code AX X++

Create Sales Line Through Code AX X++ D365 Finance & Operations