I have 3 fields on Order Line Item:
- Ordered Quantity
- Delivered Quantity
- Remaining Quantity
These fields are easy to create by using a simple formula.
I would like to create a new field : Quantity_Already_Delivered
.
This field is the sum of Delivered Quantity for each item, so my query could be like this
SELECT Id, SUM(Delivered_Quantity__c) FROM Sales_Order_Line_Item Where Id = 'Id_line_Item'
I would like to return only the sum (Delivered_Quantity__c) as a number.
The problem is that the query doesn't work on a formula field.
How can I resolve this?