Moderators mark1million Posted April 1, 2011 Moderators Report Share Posted April 1, 2011 Nabeel, In the finance and balance sheet page not all the expenses are populated on that pie chart, i used the admin url and the do as the data source but normal pilots would not be able to access that. Example, Using the admin url the pie chart is fully populated with the expense types. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 1, 2011 Administrators Report Share Posted April 1, 2011 THanks... would you be able to send me your VAs database so I can load it up and see what's happening locally? PM me... Quote Link to comment Share on other sites More sharing options...
RogerB Posted April 1, 2011 Report Share Posted April 1, 2011 It does the same thing for me...I mentioned this months ago....it worked at one point then after one of the updates it stopped. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 1, 2011 Author Moderators Report Share Posted April 1, 2011 yes well i copied the admin code and thought yeh thats fixed lol but then i visited the site nit logged in and seen the error and realised my mistake. But yes it was after an update probably a year ago now. Nabeel is looking in to it. Quote Link to comment Share on other sites More sharing options...
RogerB Posted April 2, 2011 Report Share Posted April 2, 2011 Rock and Roll Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 4, 2011 Administrators Report Share Posted April 4, 2011 Weird, I'm not seeing it. Are you viewing the same month/year and all that? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 4, 2011 Author Moderators Report Share Posted April 4, 2011 Nabeel, was that to me? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 4, 2011 Administrators Report Share Posted April 4, 2011 Yup Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 4, 2011 Author Moderators Report Share Posted April 4, 2011 What code drives that data and ill check to see if its the same. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 4, 2011 Author Moderators Report Share Posted April 4, 2011 My chart for the summary and yearly are working fine its just the monthly expense breakdown the isnt populating the pie chart. Its the same (hope you dont mind Jeff) on Jeffs site as well, http://www.phoenixva.org/index.php/finances/viewreport?type=m1301716800&submit=View+Report Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 4, 2011 Administrators Report Share Posted April 4, 2011 That's strange for the summary and yearly to work, since they all go back to the monthly. It's in core/modules/Finance.php. I can't look in detail at the moment, but any more info would help me Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 4, 2011 Author Moderators Report Share Posted April 4, 2011 The data is being pulled and displayed ok in textual form but its just the pie chart that is not graphically displaying the expenses, all that is shown is Pilot Pay and Fuel, the others are not being graphically depicted. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 4, 2011 Administrators Report Share Posted April 4, 2011 Can you paste the outputs of: /action.php/finances/viewexpensechart?type=m1301716800&submit=View+Report /admin/action.php/finances/viewexpensechart?type=m1301716800&submit=View+Report Or if you open view-source for that charts pages, and find the "data-file:" parameter of the chart, and go to that URL, can you paste the output of those two here? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 4, 2011 Author Moderators Report Share Posted April 4, 2011 This is the output, { "elements": [ { "type": "pie", "start-angle": 35, "animate": [ { "type": "fade" }, { "type": "bounce", "distance": 4 } ], "gradient-fill": true, "tip": "#val# of #total# #percent# of 100%", "colours": [ "#FF6600", "#00FF00", "#1F8FA1", "#FF0000", "#333333", "#0000FF" ], "values": [ { "value": 1013663.5973206, "label": "Fuel Costs" }, { "value": 7633.7663888644, "label": "Pilot Pay" } ] } ], "title": { "text": "Expenses breakdown" }, "y_axis": { }, "x_axis": { }, "bg_colour": "#FFFFFF" } You can see by that the only data going in is the fuel cost and pilot pay. If i do the same in the admin side its fully populates, { "elements": [ { "type": "pie", "start-angle": 35, "animate": [ { "type": "fade" }, { "type": "bounce", "distance": 4 } ], "gradient-fill": true, "tip": "#val# of #total# #percent# of 100%", "colours": [ "#FF6600", "#00FF00", "#1F8FA1", "#FF0000", "#333333", "#0000FF" ], "values": [ { "value": 1013663.5973206, "label": "Fuel Costs" }, { "value": 7633.7663888644, "label": "Pilot Pay" }, { "value": 161000, "label": "Landing Fees" }, { "value": 16100, "label": "Ramp Fees" }, { "value": 48300, "label": "Catering" }, { "value": 8050, "label": "Cleaning" }, { "value": 48300, "label": "Tug and Ground Crew" }, { "value": 114381.75, "label": "Crew Hotels" } ] } ], "title": { "text": "Expenses breakdown" }, "y_axis": { }, "x_axis": { }, "bg_colour": "#FFFFFF" } Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 4, 2011 Administrators Report Share Posted April 4, 2011 Found the problem modules/finances/finances.php Around line 45 there is: // Now expenses if(is_array($finances_data->expenses)) { foreach($finance_data->expenses as $expense) { OFCharts::add_data_set($expense->name, floatval($expense->total)); } } Replace it with if (!is_array($finance_data->expenses)) { $finance_data->expenses = array(); } foreach ($finance_data->expenses as $expense) { OFCharts::add_data_set($expense->name, floatval($expense->total)); } Fixed on beta right now Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 4, 2011 Author Moderators Report Share Posted April 4, 2011 Thanks Nabeel, that's got it Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted April 4, 2011 Report Share Posted April 4, 2011 My chart for the summary and yearly are working fine its just the monthly expense breakdown the isnt populating the pie chart. Its the same (hope you dont mind Jeff) on Jeffs site as well, http://www.phoenixva.org/index.php/finances/viewreport?type=m1301716800&submit=View+Report LOL.. Na I don't mind. Just looked into this thread. Never even knew there was an issue. But thanks for fixing it Quote Link to comment Share on other sites More sharing options...
Ohio Express Posted April 13, 2011 Report Share Posted April 13, 2011 hello, where can i locate and change the color of my financial reports and pie graphs like you did? Quote Link to comment Share on other sites More sharing options...
Jeff Posted April 14, 2011 Report Share Posted April 14, 2011 Actually, I have seen it done on a couple of VA's, but you need to search for it, as it is hidden real good. Quote Link to comment Share on other sites More sharing options...
RogerB Posted April 14, 2011 Report Share Posted April 14, 2011 My chart still isn't working correctly. The previous month doesn't display correctly, older months do. Weird.. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 14, 2011 Administrators Report Share Posted April 14, 2011 My chart still isn't working correctly. The previous month doesn't display correctly, older months do. Weird.. Not correctly meaning........... ? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 14, 2011 Author Moderators Report Share Posted April 14, 2011 hello, where can i locate and change the color of my financial reports and pie graphs like you did? /core/common OFC Charts data class I will get overwritten if you update but just change it and copy it, call it backup so when you do update you can compare differences if any and restore back. Quote Link to comment Share on other sites More sharing options...
Ohio Express Posted April 17, 2011 Report Share Posted April 17, 2011 hello, i see OFCharts.class.php and i see OperationsData.class.php is it one of those? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.