stiez / pos-tracker-eve

Automatically exported from code.google.com/p/pos-tracker-eve
0 stars 0 forks source link

Fuel Bill Calc is not accounting for Sov Status. #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Fuel Bill Page
2.  Optimal - NO
3.  Days to Fuel = 10
4.  Current Fuel Level = No

What is the expected output? What do you see instead?

Large Caldari Towers show Require Fuel Blocks as 9600 blocks.  Sov system it 
should be 7200.

What version of the POS Tracker are you using?
5.2.0

Please provide any additional information below.

Issue is in the GetFuelBill function.  That block of code is relying on 
$sovfriendly variable which is not currently being set in that function. 

                if ($sovfriendly == 1) {
                    $hasSov = .75;
                } else {
                    $hasSov = 1;
                }

TO

if ($bill[$pos_to_refuel]['sovfriendly'] == 1) {
                    $hasSov = .75;
                } else {
                    $hasSov = 1;
                }

the page handles correctly.

Original issue reported on code.google.com by doug.we...@gmail.com on 17 Feb 2012 at 11:15

GoogleCodeExporter commented 9 years ago

Original comment by frozenic...@gmail.com on 17 Mar 2012 at 6:31

GoogleCodeExporter commented 9 years ago
Fixed in 5.2.1

Original comment by frozenic...@gmail.com on 22 Mar 2012 at 4:05