Apply stock_assign of compute_quantity_query only on outgoing moves

It is too much optimistic to compute incoming assigned moves as done.

issue4384
review10681002

--HG--
extra : rebase_source : 0c8fffbeaec35bd6ea8d2abf2a84927f8f51b452