Round quantity before using it on invoice line or stock move

Precision can be lost also with only addition and substraction because of
float, so quantity must be rounded before used on invoice line or stock move.

issue4191
review7621002