then group your results by sales order
# inventory
a
then group your results by sales order