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

Search hierarchy for a match (TableALLGroup) X++

  Table1 ppt;  select firstonly ppt  order ItemCode, ItemRelation, AccountCode, AccountRelation where      (ppt.ItemCode == TableGroupAll::T...