Stock period closing does not take in count deactivated locations
Following: https://discuss.tryton.org/t/negative-stock-quantities-after-closing-stock-period/9141/3 If a location is deactivated, it is not taken in count when closing a stock period, but the location could've been active with stock on it at the date of the period.
issue