Skip to content

Commit

Permalink
Change categories to show in categoryid order not category descriptio…
Browse files Browse the repository at this point in the history
…n order
  • Loading branch information
timschofield committed Jun 10, 2012
1 parent 1b4712c commit 8c073e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InventoryValuation.php
Expand Up @@ -206,7 +206,7 @@

echo '<table class="selection"><tr><td>' . _('From Inventory Category Code') . ':</font></td><td><select name=FromCriteria>';

$sql="SELECT categoryid, categorydescription FROM stockcategory ORDER BY categorydescription";
$sql="SELECT categoryid, categorydescription FROM stockcategory ORDER BY categoryid";
$CatResult= DB_query($sql,$db);
while ($myrow = DB_fetch_array($CatResult)){
echo '<option value="' . $myrow['categoryid'] . '">' . $myrow['categoryid'] . ' - ' . $myrow['categorydescription'] . '</option>';
Expand Down

0 comments on commit 8c073e7

Please sign in to comment.