Bug Incorrect Lottery Reward Amounts

Status
Not open for further replies.

Madhatterr

Customer
We had our first lottery drawing today on the new Shop version.

Here is a screenshot from one of our members displaying the amounts they won for their lottery tickets.

lot.jpg


On the admin side I have it set to 2 matches is 5 points (they were awarded .555555556) and 3 matches is 25 points (8.33333333333 actually awarded).

On my lotteries detail page it states
1. Match 6 - 100 Player Points - Winner(s)
2. Match 5 - 75 Player Points - Winner(s)
3. Match 4 - 50 Player Points - Winner(s)
4. Match 3 - 25 Player Points - 3 Winner(s)
5. Match 2 - 5 Player Points - 9 Winner(s)
 
I'll look into the broken display and also add some rounding.

The rewards are 100% correct, as it divides the points between the winners (which is how real lotteries work) :)

EDIT: vBShop isn't up to v4.2.2 yet ;)
 
I'll look into the broken display and also add some rounding.

The rewards are 100% correct, as it divides the points between the winners (which is how real lotteries work) :)

EDIT: vBShop isn't up to v4.2.2 yet ;)

Just a little note that in real lotteries the lowest prize tends to be fixed (e.g in the UK 3 numbers means £10) - could perhaps be an option added to later versions (fixed values).
 
Hotfixed in rounding for the lottery payout, and fixes for the Transaction Log display :)
 
Just a little note that in real lotteries the lowest prize tends to be fixed (e.g in the UK 3 numbers means £10) - could perhaps be an option added to later versions (fixed values).

Thats correct. The lowest prize, ie one matching number out of 6 or 7 drawn numbers needs to be a fixed number.
 
Status
Not open for further replies.

Similar threads

Legacy vBShop

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,261
Customer rating
0.00 star(s) 0 ratings
Back
Top