Problem with POS

Post here if you think you have found a bug in hoteldruid or error in its documentation.

Moderator: marco

Post Reply
frank_did
Posts: 57
Joined: Tue Jul 26, 2011 10:02 pm

Problem with POS

Post 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
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Re: Problem with POS

Post 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
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply