Monday, 18 May 2015

Reservation - Qty for a salesline

Reserve quantity for a salesline can be retrieved from Invent Transactions.

Real ReserveQty;


_salesline  =   SalesLine::findRecId(_salesparmline.SalesLineRecId);
                _inventtransorigin  =  InventTransOrigin::findByInventTransId(_salesline.InventTransId);
                select _inventTrans where _inventTrans.InventTransOrigin   ==  _inventtransorigin.RecId
                    && _inventTrans.StatusIssue ==  StatusIssue::ReservOrdered;
              ReserveQty = _inventTrans.Qty

No comments:

Post a Comment