@shackbarth 
Why do we need `distinct on (invcitem_id)`?  There is already a `group by invcitem_id` down there...