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
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