Skip to content

Commit

Permalink
Fix for #39 : For Buy Orders, volume column should be titled 'Volume …
Browse files Browse the repository at this point in the history
…Bought' not 'Volume Sold'
  • Loading branch information
roxlukas committed Nov 9, 2016
1 parent 5d63c29 commit d70a262
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/30.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
foreach ($corps as $corp) { //begin corps loop
echo("<h3><img src=\"https://imageserver.eveonline.com/Corporation/${corp['corporationID']}_32.png\" style=\"vertical-align: middle;\" /> ${corp['corporationName']}</h3>");
$marketdata=getMarketOrders("WHERE amo.bid=0 AND amo.orderState=0 AND amo.volRemaining>0 AND amo.corporationID=${corp['corporationID']}");
showMarketOrders($marketdata,'Sell orders');
showMarketOrders($marketdata,'Sell orders',TRUE);
$buyorddata=getMarketOrders("WHERE amo.bid=1 AND amo.orderState=0 AND amo.volRemaining>0 AND amo.corporationID=${corp['corporationID']}");
showMarketOrders($buyorddata,'Buy orders');
showMarketOrders($buyorddata,'Buy orders',FALSE);
}
}
if (checkrights("Administrator,ViewContracts")) {
Expand Down
4 changes: 2 additions & 2 deletions include/market.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function getMarketOrders($where) {
ORDER BY `typeName`;");
}

function showMarketOrders($orderlist,$label=null) {
function showMarketOrders($orderlist,$label=null,$sell=TRUE) {
global $DECIMAL_SEP, $THOUSAND_SEP;
$rights_viewallchars=checkrights("Administrator,ViewAllCharacters");

Expand Down Expand Up @@ -292,7 +292,7 @@ function showMarketOrders($orderlist,$label=null) {
</th><th>
Price
</th><th colspan="2">
Volume sold
<?php if ( $sell === TRUE ) echo('Volume sold'); else echo('Volume bought'); ?>
</th>
</tr>
<?php
Expand Down

0 comments on commit d70a262

Please sign in to comment.