Small fixes
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 22 Sep 2008 21:10:48 +0000 (21:10 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 22 Sep 2008 21:10:48 +0000 (21:10 +0000)
dimensions/includes/dimensions_ui.inc
dimensions/inquiry/search_dimensions.php

index 25ddb2b8e2c24211983f0f4ca8fcfcff1efa44ec..ae69b98b6ed2bdcf0bfc59f6c5daaea9ba15c584 100644 (file)
@@ -11,7 +11,7 @@ function display_dimension_payments($id)
        $sql = "SELECT ".TB_PREF."gl_trans.*,".TB_PREF."chart_master.account_name  FROM
                ".TB_PREF."gl_trans,".TB_PREF."chart_master WHERE
                ".TB_PREF."gl_trans.account = ".TB_PREF."chart_master.account_code AND
-               dimension_id = $id OR dimension2_id = $id ORDER BY account,tran_date";
+               (dimension_id = $id OR dimension2_id = $id) ORDER BY account,tran_date";
        $result = db_query($sql, "Transactions could not be calculated");
 
     echo "<br>";
index 14ce24ab1084732fd0f943929bc0084937fb91e6..6f689ec94002d5ae7c4b86f71536f3f53641985e 100644 (file)
@@ -63,7 +63,7 @@ start_row();
 
 ref_cells(_("Reference:"), 'OrderNumber', '',null, '', true);
 
-number_list_cells(_("Type"), 'type_', null, 0, 2);
+number_list_cells(_("Type"), 'type_', null, 1, 2, _("All"));
 date_cells(_("From:"), 'FromDate', '', null, 0, 0, -5);
 date_cells(_("To:"), 'ToDate');