Add an option "Tax calculation rounding method" that can be set to "Round per line...