Page 1 of 1

stockitem of -0.45 becomes -0.44

Posted: Mon Nov 21, 2005 3:09 pm
by René
For returning bottles I added items in the stocktable called "statiegeld" (=deposit money) with prices -0.10 -0.25 and -0.45 , taxrate 0 (=0.000%) (Dale told me how to add negative prices in the stocktable)
If I ring only 1 of these items on the screen apears total -0.09 0.24 or -0.44.
In all other situations it seams to go fine and it shows the right value.
Any idea how to solve this?
I use 6.36(d)
René

Posted: Mon Nov 21, 2005 5:43 pm
by ibmsystems
Ok First Try Updating To 6.37 Than Check Back Here

Thanks

If You Upgrade To 6.37 I Can Help Here

637b installed

Posted: Tue Nov 22, 2005 1:53 pm
by René
Hello,
I did. 637b is running now. Same problem, no difference.
To look deeper in to it I defined a stock item with a price -100.00. In that case it also deducts 0.01 of the price on the screen in the total line on the screen. In the item line is shows the correct value.
It doesn't matter what the price is. If it is negative AND the first item it deducts 0.01 of the price that is in the stock table.

René

Rounding error

Posted: Tue Nov 22, 2005 2:37 pm
by Dale Harris
This is a problem when you are using "included" tax and negative prices in the stock table. I will look into this and see what I can do.

Rounding error

Posted: Tue Nov 22, 2005 4:12 pm
by Dale Harris
René,

Try this file http://keyhut.com/pos637c.zip

Make a backup of your current POS.EXE file first before unzipping this file.

This contains only a new POS.EXE file which means that you can only try it out if you are currently using version 6.37b

Needless to say the concept here is to not only get the bottle deposit thing to come out correctly but also to not screw up anything else. The part of the code I had to change involved calculating the total sale and rounding the sale to the nearest 5¢ or 10¢ but only if your register is configured to use "included" tax.

So I need everyone to ring up test sales using your particular register configuration (assuming that it is configured to use "included" tax.) Even if you do not ring sales with negative prices I still need it tested so that I can be sure that your sales are still coming out correctly. Test it with rounding and not rounding sales.

Testing returns and voids with bottle deposits would also be a swell idea.

It works!

Posted: Tue Nov 22, 2005 5:39 pm
by René
Hello Dale,

I installed it tested it with single and multiple deposits, in combination with "normal" items. Did voids in all kind of ways. Tried several returns ( even with bottle returns wich is crazy!) and every thing works fine. I use 3 tax rates 0 % 6 % and 19 %. All is caculated well.

Thnaks for the fast response and solution. Now I must do a lot of translation agian to Dutch...grrrr)

If you ever start making pos for more languages i'll translate the parameters to Dutch and German if you want:)
Best regards and thanks

René