>
>Thx for taking trouble over this. I thought the showstopper was being unable to get aggregates in the recursive part of the query - was that your conclusion also?
Yes, you've to have total weight of receipt before you can apply quan with portion=0
<snip>
--sb--