Wrong computation of remaining quantity to invoice for returns
When an order line is a return (negative quantity), we can not deduce the ignored stock move quantity because it is positive so this "increase" the quantity. The result is that sale stays in processing.