Added direct allocations
[fa-stable.git] / admin / view_print_transaction.php
index 8e07831474eb3f9b9cc79638039840800877867f..94c22416102df6f35e29af92c87de8d7991bce1c 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 /**********************************************************************
     Copyright (C) FrontAccounting, LLC.
-       Released under the terms of the GNU Affero General Public License,
-       AGPL, as published by the Free Software Foundation, either version 
-       of the License, or (at your option) any later version.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
-    See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
 $path_to_root="..";
 $page_security = 5;
@@ -60,7 +60,7 @@ function viewing_controls()
 
     ref_cells(_("to #:"), 'ToTransNo');
 
-    submit_cells('ProcessSearch', _("Search"), '', '', true);
+    submit_cells('ProcessSearch', _("Search"), '', '', 'default');
 
        end_row();
     end_table(1);
@@ -82,8 +82,6 @@ function check_valid_entries()
                display_error(_("The ending transaction number is expected to be numeric and greater than zero."));
                return false;
        }
-       if (!isset($_POST['filterType']) || $_POST['filterType'] == "")
-               return false;
 
        return true;
 }
@@ -139,7 +137,7 @@ function handle_search()
                }
 
                $table =& new_db_pager('transactions', $sql, $cols);
-               if (list_updated('filterType')) {
+               if (list_updated('filterType') || get_post('ProcessSearch')) {
                        $table->set_sql($sql);
                        $table->set_columns($cols);
                }
@@ -160,7 +158,7 @@ if (isset($_POST['ProcessSearch']))
 
 //----------------------------------------------------------------------------------------
 
-start_form(false, true);
+start_form(false);
        viewing_controls();
        handle_search();
 end_form(2);