Bug in 4.8.4+ storage/display decimal places

Started by davemarks, September 03, 2013, 08:53:15 PM

davemarks

Is anyone experiencing the following bug on 4.8.4+ which seems to have been introduced by the new storage/display decimal places feature?

Basically, if a product is set to Metered billing (eg, onapp cdn, powerdns, etc...) The pricing will automatically be set to $0.01/mo + X setup fee.

Eg. Onapp CDN pricing is set to have an initial deposit of $10. On the cart the amount will be displayed as $0.01/mo + $10 setup fee total $10.01.

This does not happen on 4.8.2 and under.

tallship

Hi Dave :)

Thanks for pointing me to this post. I read it before, but since I don't use OnApp I didn't think it concerned me personally.

Did you open a bug report at the fake bugtracker at hostbillapp.com? If so, I'll be happy to give your bug a bump w/a "It bugs me too!", if you provide a link (For whatever it is worth - kbkp doesn't fix squat most of the time and often reports bugs as fixed when they're not).

Back to my dilemma HERE, from whence you referred me here, I still don't think this particular issue pertains to my particular install (Unless you're referring to the fact that one cannot enter quan 2.5 w/price of x and get 2.5x = they get 3x instead - but this goes back as far as HostBill versions 2 and 3).
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

davemarks

This isn't actually linked to Onapp only. It's happening on any module that uses metered billing with $0.00 recurring + a setup fee.

Nathan_Thomas

Dave, Tallship,
We are experiencing this exact issue, it appears that a metered product always appears with a price of 0.01 (shown as £0.01 + £0.01 Setup Fee in the order summary).

You may also notice the following behaviour: if you set your Display Decimal Places to something large (e.g 10) you will notice that the actual price is something like £0.0000100001

This suggests that its a rounding issue, i.e the price isn't actually being set at exactly 0.01, its being calculated (or passed to the order page) as an amount just above zero and then rounded to 0.01. (I found this out after hours of searching through the database for amounts of 0.01 to no avail).

The figure above (£0.0000100001) doesnt appear anywhere in the code or database, and the code that calculates those figures is encrypted, so where its coming from I cant work out.

Did you guys ever find a solution/workaround?

Nathan.


davemarks

Unfortunately no workaround that's why I'm still on 4.8.2, the last version before the introduction of storage/display decimal setting.

Hoping for a fix soon.


tallship

Quote from: davemarks on September 27, 2013, 07:12:23 PM
Please vote up this bug. It needs to be fixed asap.

https://help.hostbillapp.com/index.php?/bugtracker/bug/&id=476

Thanks!!

Done :)

It's prolly going to take more than just my one vote though before it rises to the level of where it will be noticed though :(
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.