Remain Qty with transfer order

Hi All,

I clear remain QTY's in transfer order with this code:

        WmsPickingLineCancel::newWMSPickingLineCancel(wmsOrderTrans).run();
        inventTransferLine.QtyRemainReceive = 0;
        inventTransferLine.QtyRemainShip    = 0;
        inventTransferLine.update();

some lines give "Quantity ordered may not be reduced because there are not enough inventory transactions with 'on order' status." error and I cannot make zero remain qtys. I tried at transfer order form's functions ->update remain -> cancel line with that error.

What's the problem?

 

Parents
No Data
Reply Children
No Data
Related
Recommended