1 (edited by DrCard 04/14/2021 09:26:08 am)

Topic: Payments & Deposits(Rounding Problem)

When making a Payment or a Deposit, The bank Amount is rounded to 2 Digits. Example:
A payment of 50.555 it is rounded to 50.560,  our currency is 3 digits.


The rounding error happens only for the the (Payment or a Deposit) only



https://ibb.co/L5yYp1S  Input Picture
https://ibb.co/4RRkJsJ  Output Picture

Post's attachments

Screenshots_PayDep.zip 99.8 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Payments & Deposits(Rounding Problem)

DrCard wrote:

When making a Payment or a Deposit, The bank Amount is rounded to 2 Digits. Example:
A payment of 50.555 it is rounded to 50.560,  our currency is 3 digits.


The rounding error happens only for the the (Payment or a Deposit) only



https://ibb.co/L5yYp1S  Input Picture
https://ibb.co/4RRkJsJ  Output Picture


i have noticed the same thing too, although our currency does not use 3 digit decimal.

Re: Payments & Deposits(Rounding Problem)

Oh Boy, we missed this in 2 files, where the Prices/Amounts decimals was hardcoded to 2 decimals. In all other places this were set correctly.

This has now been fixed and committed to stable repo.

If you need these 2 files they can be downloaded here:

https://sourceforge.net/p/frontaccounti … s_cart.inc
https://sourceforge.net/p/frontaccounti … ets_db.inc


/Joe

Re: Payments & Deposits(Rounding Problem)

well done @joe