"Rounding method" in Purchase Invoices

I have an Invoice for $266,12 + 21% tax.

In Manager.io that results in a total of $322,01, but my original invoice is for $322,00.

I can choose different “rounding methods” when I create a Sale Invoice, but how could I correct this in a Purchase Invoice?

I tried changing the “unit price” from $266,12 to something like $266,1148 but the total just goes from $321,99 to $322,01

Edit: I found that checking “Amounts are tax inclusive” and setting the final ammount ($322,00) fixed the problem.