Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

Cancel sales order lines

$
0
0

Hi,

I tried to cancel sales order lines, and when I check in delivery reminder to cancel qty its showing zero there. but when I open

salesline's inventory/ transactions is showing onorder value as -1. useally it should not show record when we do manually.

if we do by script its showing. how to do it.

I used following script to cancel the sales line

ttsBegin;

    while select forupdate salesLine

        where salesLine.SalesId == salesTable.SalesId

    {

        salesLine.RemainInventPhysical = 0;

        salesLine.RemainSalesPhysical  = 0;

        salesLine.update();

    }

    ttscommit;

 

thanks


Viewing all articles
Browse latest Browse all 9880

Latest Images

Trending Articles



Latest Images