Saturday, February 15, 2014

TO cancel the PO

// TO cancel the PO

cancel the PO. go to lines>functions>deliver remainder>cancel qty


void cancelPurchLine(recId PurchLineRecId)
{
    PurchLine       localPurchLine = PurchLine::findRecId(PurchLineRecId,true);
    ;
    ttsbegin;

    localPurchLine.RemainPurchPhysical = 0;
    localPurchLine.RemainInventPhysical = 0;

    localPurchLine.update();

    ttscommit;
}

No comments:

Post a Comment

Copy Markup charges while posting purchase invoice using X++

 Copy Markup charges while posting purchase invoice using X++ Class: Important: Code logic is just for Reference.  New class => Duplicate...