Remember me

Cart Calculation does not round correctly

7 years 4 months ago #1

  • Silke's Avatar
  • Silke
  • Posts: 43
Hi Artem.
I have the problem, that the Cart does not round correctly to two digits behind the comma.
As far as the code goes, I cannot find the error.
You find the form unter iaai.avalonweb.de/index.php
klick on the top right pop-up button labelled
"Einsatzstunden-Meldebogen"

Select a few of the checkboxes and step by step increase the quantity in the cart below.
You will soom see the results as attached.



Thanks for your help

Silke

7 years 4 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hi,

Do you have the latest version of Forms component (v.1.6.2), because we have fixed this bug in the previous version.

Regards,

7 years 4 months ago #3

  • Silke's Avatar
  • Silke
  • Posts: 43
Yes, it is the final version, I just updated it. Do I need to clear the cash again :D?
But I also have the necessety to enter integers with one digit behind the comma in the quantity field.
As you can see, it is not a real cart, I missused it as a reporting form :D
Thanks for your help
Silke

7 years 4 months ago #4

  • Artem's Avatar
  • Artem
  • Posts: 11342
No, Looks like it's a not a cache, it's a bug :(

Here is can be 2 ways:
1. At this week we plan to launch "Bug Fix" update for the Forms, and you will be able to update
2. If it's very urgently, you can send us FTP access and we can fix it, use our contact form
support.balbooa.com/contact-us

Regards,

7 years 4 months ago #5

  • Silke's Avatar
  • Silke
  • Posts: 43
I wait fpr the update, but that also means that my "Language" readouts for the cart will be overwritten again.
Maybe for the futur you could add a dedicated language file for us to adjust the cart and mail :D
Thanks for your help
SILKE

7 years 4 months ago #6

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hi,

Can you please provide us FTP and Joomla admin access, unfortunately we can't repeat this bug locally, use our contact form: support.balbooa.com/contact-us

Regards,

6 years 6 months ago #7

  • Silke's Avatar
  • Silke
  • Posts: 43
Hi Artem.
After I upgraded Forms, same problem is here again :D
It round not to two digits, but endless. I thoiught, the problem would be solved
in the update, but I still seem to have. It was solved after your corrected it last time. What did you do :D
Kind regards
SIlke

6 years 6 months ago #8

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hi SIlke,

Send us please the link to the form

Many thanks,
Artem, Balbooa.com

6 years 6 months ago #9

  • Silke's Avatar
  • Silke
  • Posts: 43
Hi Artem.
Here ist the link: www.iaai.de/index.php
Klick on the button on the top right corner reading: Einsatzstunden-Meldebogen
The false calculation is only in the emails, not on the form :D

All the best

6 years 6 months ago #10

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hi,

Try this solution:
components/com_baforms//assets/js/ba-form.js
Line 1419

Find
real[1] = obj.quantity * real[1];

Replace on
real[1] = Math.round10(obj.quantity * real[1], -2);

With a next update will be fixed!

Many thanks,
Artem, Balbooa.com

6 years 6 months ago #11

  • Silke's Avatar
  • Silke
  • Posts: 43
Dear Artem... absolutely phantastic. You did it ... as usual :D
Works great now and buy the way... Gridbox 2.x is absolutely
marvelous.

6 years 6 months ago #12

  • Artem's Avatar
  • Artem
  • Posts: 11342
Thank you! I'm very happy to know that you enjoy our products :)
Powered by Kunena Forum