Wednesday 10 October 2018

code for posting partial packing slip for intercompany PO

say we have a sales order and we have created  a partial packing slip for the sales order  and want to  post packing slip for the relevant purchline with the same  packing slip.


static void Job203(Args _args)
{   

    CustPackingSlipJour CustPackingSlipJour;


    select CustPackingSlipJour  where CustPackingSlipJour.SalesId == "00001283"
    && CustPackingSlipJour.PackingSlipId == "TT43953408";
    if(CustPackingSlipJour)
    {
        CustPackingSlipJour::interCompanyUpdateIL([custPackingSlipJour]);
    }

    info("done");

}

No comments:

Post a Comment

intercompany PO multiple product receipt by x++

public void processStampICPO(PackingSlipId _deliveryNote,                             Transdate _deliverydate,                             ...