Could you please help me understanding, how Espo CRM calculates VAT (Invoice Items screenshot attached)? And is it possible to change precision to 2 instead of 4 numbers after the decimal in calculations?
If I understand correctly, in the attached case (you see Invoice Items), VAT is calculated like this:
$firstLineVAT = 151.2 * 0.21 = 31.752
$secondLineVAT = 88.02 * 0.21 = 18.4842
$taxAmount = 31.752 + 18.4842 = 50.2362
Tax Amount has an "in-built" precision of 2 and shows a rounded number "Tax Amount = 50.24". Is this correct?
If so, is it possible to have the precision of 2 in $firstLineVAT and $secondLineVAT? Then the values would be 31.75 and 18.48 accordingly. And finally, the result would be "Tax Amount = 50.23" (31.75 + 18.48).
The thing is, that I need to have that "Tax Amount = 50.23" and I don't know how to get it... Any ideas?
Thanks,
Laimonas
If I understand correctly, in the attached case (you see Invoice Items), VAT is calculated like this:
$firstLineVAT = 151.2 * 0.21 = 31.752
$secondLineVAT = 88.02 * 0.21 = 18.4842
$taxAmount = 31.752 + 18.4842 = 50.2362
Tax Amount has an "in-built" precision of 2 and shows a rounded number "Tax Amount = 50.24". Is this correct?
If so, is it possible to have the precision of 2 in $firstLineVAT and $secondLineVAT? Then the values would be 31.75 and 18.48 accordingly. And finally, the result would be "Tax Amount = 50.23" (31.75 + 18.48).
The thing is, that I need to have that "Tax Amount = 50.23" and I don't know how to get it... Any ideas?
Thanks,
Laimonas
Comment