Use fixed location type to compute quantity to invoice for sale and purchase
Using the computed location to get the expected type is not reliable because for return order, the location can be of different type and the stock move can change of location type.
Closes #12203 (closed)