Fix bug on stock calculation for replenishment: wrong order in ifsql.
Merge branch '3.5' of https://github.com/Dolibarr/dolibarr.git into 3.5