Negative and miscalculated balance MAJOR ISSUE
-
Hello, I’ve been using tera wallet for a while and it is a great plugin, I posted an issue earlier regarding negative wallet balance but the post had two questions, and this was never answered or resolved,FYI never did I enable the feature to allow for negative balance, nor is it possible when I test it with any of the accounts, but there are certain cases which I don’t know how to re-produce where some users were able to make the purchase and get negative balance, in action they did not actually get negative balance, the balance was actually miscalculated, so the user was able to complete the purchase and get the item ONLY THEN will his balance show a negative value
Here’s a screenshot of a couple of MySQL records showing how a user’s balance was miscalculated.https://drive.google.com/file/d/1DZak4W7gMBJbUz4-nKGtREhnG1niCpsj/view
You can see in the screenshot, when the user had 9.89 he made a purcahse of 25.43, instead of rejecting the purchase, and telling him he does not have enough funds. The transaction went through actually and his balance was miscalculated, as you can see the balance in the last transaction is incorrect, the order went through.
if I lookup the user’s balance in usermeta table I get _current_woo_wallet_balance = 6.1
But if I open tera wallet page in the backend I get -15.54 Which is the actual and accurate balance.
How do I prevent this from happening?I’m using Tera Wallet 1.3.14, WooCommerce 4.0.0
Thanks
- The topic ‘Negative and miscalculated balance MAJOR ISSUE’ is closed to new replies.