*

Author Topic: [fixed] Quarterly Display does not include goals  (Read 8173 times)

Offline Thelic

  • New
  • *
  • Posts: 4
[fixed] Quarterly Display does not include goals
« on: May 02, 2008, 09:32:03 AM »
If I show my treasury on monthly, then it shows the goals ($26.50 per month)
If I show it on quarterly, then it shows the goal as $0.00.  I don't know why..


Initiated by Bugger (Original Entry) - Comments Here Please.
« Last Edit: May 02, 2008, 02:32:55 PM by Resourcez »

Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
Re: [bug] Quartly Display does not include goals
« Reply #1 on: May 02, 2008, 09:36:03 AM »
Confirmed - thanks for using Bugger  :)

I'm not sure what has happened there, yet, possibly something I've introduced with changes to events.  I shall investigate.

Quite perplexing - monthly, half-yearly and yearly all work okay.
« Last Edit: May 02, 2008, 11:08:47 AM by Resourcez »
If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
Re: [bug] Quartly Display does not include goals
« Reply #2 on: May 02, 2008, 11:38:40 AM »
Turns out it was a silly coding error by me that's been there right from the start and only reveals itself when you hit the second quarter of the year.  Applies to all versions as well as the block.

If you're comfortable editing a file,
For BoardDirectory/Sources/Treasury.php file - approx. line 208, find
Code: [Select]
for($i=$start; $i<=$end; $i++) {and replace with
Code: [Select]
for ($i=$start; $i<=($start+$end-1); $i++) {
For DonationBlock.php, approx. line 67, find
Code: [Select]
for ($i=$startb; $i<=$endb; $i++) {replace with
Code: [Select]
for ($i=$startb; $i<=($startb+$endb-1); $i++) {
If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

Offline Thelic

  • New
  • *
  • Posts: 4
Re: [bug] Quartly Display does not include goals
« Reply #3 on: May 02, 2008, 12:27:04 PM »
Excellent - No problem with editing files, i've had to learn PhP and edit and/or rewrite sections of mods to get them to work with my other mods before, hehe. 

For me, in the treasury.php, it was line 421, at the very end.

It works perfectly.  Now it shows the quarterly goal, which is much more useful because we pay for things quarterly.  Thanks, Resourcez!

 

Please Support Us!

Something for Here
Donate with PayPal!
June Goal: $40.00
Due Date: Jun 30
Total Receipts: $0.00
Below Goal: $40.00
Site Currency: USD
 0%

Content