Author Topic: mistake in calculation after delete  (Read 4983 times)

Offline CuTe_MaN

mistake in calculation after delete
« on: July 17, 2007, 07:26:44 pm »
I have noticed one thing about the shop

I have a user and I wanted to delete a topic that he wrote

I assigned before for the topic 6 credits and for the reply 2 cedits.

i found that the his acount didnt remove the 6 credits it removed only 2 credits.

and also I wanted to merge 2 topics the amount of credit that the topic writer got didnt change at all.


anybody can help??


Thx

CuTe_MaN

Offline feildmaster

Re: mistake in calculation after delete
« Reply #1 on: July 17, 2007, 10:46:11 pm »
I'm  sure it can be fixed to get rid of the money for a thread deletion...

but the merging is pretty worthless, because they originally made 2 posts... (I use a double post mod that makes extra replies go to the first reply if they are trying to double post. and they get money for each one, I think that is fair. but why am i telling u this...)

i'd help if i wasn't working on a ton of other things...

Offline CuTe_MaN

Re: mistake in calculation after delete
« Reply #2 on: July 17, 2007, 10:56:00 pm »
I agree with you on the merge sitiuation

but when u merge 2 topics (threads) in that case he doesnt deserve to get credit for both threads.

but if you can fix the first problem i think that it is enough because the sitiuation of two threads that need to be mereged very rare

I have noticed now also that if the user dont have any money in pocket and you delete his topic
the shop will not remove any credits from his bank account



CuTe_MaN
« Last Edit: July 17, 2007, 11:01:07 pm by CuTe_MaN »

Offline feildmaster

Re: mistake in calculation after delete
« Reply #3 on: July 18, 2007, 01:58:48 am »
right then... u using 3.0?

Offline CuTe_MaN

Re: mistake in calculation after delete
« Reply #4 on: July 18, 2007, 06:22:21 am »
yes I am using SMF Shop 3.0


edit: I think if it is possible to make his pocket credit amount nigative.
but the problem is that I dont know if it is possible with PHP.
if it is possible can you do that?


CuTe_MaN
« Last Edit: July 18, 2007, 09:35:50 pm by CuTe_MaN »

Offline Daniel15

Re: mistake in calculation after delete
« Reply #5 on: July 21, 2007, 01:13:22 pm »
This is something I've been meaning to fix for a long time, but have not got around to yet.

Offline tsndp

Re: mistake in calculation after delete
« Reply #6 on: January 03, 2011, 09:22:43 pm »
did u got the solution yet?? 3 years.. still waiting....

Offline tsndp

Re: mistake in calculation after delete
« Reply #7 on: January 04, 2011, 01:00:53 am »
Got solution..

goto ./Sources/RemoveTopic.php

find
'amount' => $modSettings['shopPointsPerPost'],
change to
'amount' => $modSettings['shopPointsPerTopic'],

you are required to change it in two places :)  :crazy2: