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

Disabling the flight in D365FO (CHD - Tier 1)

 INSERT INTO dbo.SYSFLIGHTING(FLIGHTNAME, ENABLED)  VALUES ('<FlightObjectName>_KillSwitch', 1)  or  INSERT INTO dbo.SYSFLIGHT...