I need to get a sum of all items sold per order per store. I am running a sum() on expression using executeQuery(). It works fine as shown below but I wanted to know if ther
I'd try to add a transient derived property total to OrderItem and use sum() on it.
total
OrderItem
sum()