Sunday, May 16, 2021

Cancel a specific Sales Line, using X++ in d365Fo

Cancel a specific Sales Line, using X++ in d365Fo.

check below.


ItemID        ItemId=' ';

SalesId        SalesId = ' ';

boolean      check;

   select salesline

    where salesline.SalesId == SalesId

        && salesline.ItemId == ItemId;

        if(salesline)

        {

            ttsbegin;

           check =  SalesUpdateRemain::updateDeliveryRemainder(salesline, 0, 0); 

           ttscommit;

    }


Keep Daxing!!

No comments:

Post a Comment