Closed tdrabikdev closed 3 years ago
Actually this is expected behavior, because 20% of 8.33 is 1.(6) so it gets rounded to 1.67 Specifically for this case and if it might be an issue for someone we provide override methods, but then you need to calculate taxes yourself and pass the result as a parameter
<...>
$invoice = Invoice::make()
->buyer($customer)
->totalTaxes(1.66)
->addItem($item);
return $invoice->stream();
Describe the bug Tax is rounded up and it give a wrong sum on invoice.
To Reproduce
Expected behavior gross price £9.99, tax 20%, net price £8.33 tax:£ 1.66 price on invoice £9.99
Result gross price £9.99, tax 20%, net price £8.33 tax:£ 1.67 price on invoice £10.00
Screenshots
Desktop (please complete the following information):