Page 1 of 1

Problem with POS

Posted: Thu Apr 25, 2013 12:26 pm
by frank_did
Hi!
I'm using HD 2.0.3 and there is a strange problem with POS (Cash Box). There are extra costs for internet tickets, 0,60 € each. I selled three of them and the sum of it all was 1,79 €. Nine of them costs 5,39 € and ten of them costs 5,99 €. The prices for the other quantities (4, 5, 6 etc) are o.k. Sometimes there is 1 cent missing. With other extra costs the problem is not reproducible. With our weekly tickets (2,50 € each= the problem does not occur.
To complete the confusion the correct values are stored into the database.

Best regards
Frank

Re: Problem with POS

Posted: Thu Apr 24, 2014 4:25 pm
by marco
Hello Frank,
to solve this problem in version 2.1 you have to edit the file base.js, replacing the line:

Code: Select all

totale = Number(totale) + Number(val);
with this new line:

Code: Select all

totale = Math.round((Number(totale) + Number(val)) * 1000) / 1000;
It will be solved in next version too.

Regards,
Marco