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
while select forupdate salesLine
where salesLine.SalesId == salesTable.SalesId
salesLine.RemainInventPhysical = 0;
salesLine.RemainSalesPhysical = 0;