Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Profile for edinet

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 15:53
  • Posts: 1
  • Profile Views: 2071
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
Hi,
we hit an error in tax rating calc.

Note: We are using VM 1.1.9 and VMInvoice 2.0.14

E.g. we have a product A that costs 1.3euro + VAT (21%) so the tax amount is 0.273 .

If I save the invoice and then reopen the invoice, for this product the tax rate select field is 0% ( the first option element in the select).
This is because the system rounds some calc and does not recognise the tax value (0.2067... instead of 0.21).

So, two ways are open:
1. Round the tax rate and/or "guess" the right one.
I've seen that there is a function called guessTaxRate in class InvoiceHelper that you use only for VM2. For VM1 you assign tax rate directly. Can this approach be replicated also for VM1 ?

2. Round everything with the same precision - 5 decimal digits

Thanks

Sincerely,
Simone Marx.
Tax guessing
Category: Customer Support
More
User Login Empty