Improve credit limit computation for processing sales
From https://discuss.tryton.org/t/credit-limit-amount-calculation/6082/4
- the computed quantity should not be used if it is negative (invoice more than sale line quantity)
- the quantity should be deduced for ignored stock moves or invoice lines (depending on the invoice method)