Dear
how can i check in an invoiced sales order , which Batches were actually picked?
thanks
*This post is locked for comments
I have the same question (0)

Dear
how can i check in an invoiced sales order , which Batches were actually picked?
thanks
*This post is locked for comments
I have the same question (0)Since sales orders contain multiple sales order lines potentially for different items (and Batch is specific to each item), you'll have to iterate through each sales order line.
For each sales order line, consider all InventTrans records for that InventTransId with StatusIssue == StatusIssue::Sold (and StatusReceipt == StatusReceipt::None), and join InventDim according to its standard relation. InventBatchId is found on InventDim.
You can, of course, have multiple combinations of ItemId and InventBatchId for an invoiced sales order line.