Dears.
I am creting a query type=API
In Sales Line table i have 3 lines .
1-Item1 /UOM=PCS =Total 100
2-Item2 /UOM=PCS =Total 50
3-Item3/UOM=Service Total 5.
Grand Total =155.
But on Sales Hader Level i am getting all fields but i want to add two columns Total
If Item UOM =pcs then TotalItemsSold 150
If Item UOM =Service then Total ServicesValue =5
How i can use If condtion or Filter to Sum up Sales Line based on condtion on field UOM.
Thanks in advance.
Aqeel.