one of my users has received 60 in payments and has purchased 20. So their balance is 40 which makes sense, however the turnover is showing as -30 which I cant figure out. Shouldn't it be 80?
Another user has purchased 100 units and been paid 20. Their balance is -80, and their turnover is 0. Again Im confused by the turnover figure.
Is there some logic to it that I dont see or is it a bug?
cheers,
rachel

Comments

matslats’s picture

Assigned: Unassigned » matslats

Hi
Your site was confused because it was some transactions which had been badly deleted. I need to tidy up the transaction delete process.

Of course, in a live system, deleting transactions would not be allowed, since balances are calculated by looking at all the previous transactions. Don't worry ... they're in a cache table!

I've also added a cache_clear_cc function.

fudge714’s picture

cool.. thanks.
also Im now having another issue which may be related.. the balances page is showing up as an empty white page with empty source code as well..
I initially enabled the cc_custom module to check it out, but wasnt able to find anywhere how to edit the profile pages and wanted the finances and balances on the same tab like they used to be so I disabled it, but the two tabs are still showing up, yet yeah the balances page just shows up empty..
thanks

matslats’s picture

Category: bug » support
Status: Active » Closed (fixed)

Balances page was a little bug which didn't take account of there having been no transactions - thanks pointing it out.
The cc_custom module encourages you to use hook_menu_alter to present different displays on different pages. There's lots of examples in there, commented out.