Take in account discount when calculating bases and taxes details.
Version 1.4.1
Merge branch 'master' into fac24