Added Attachment of Documents and a couple of links from supplier invoice/crfedit...
[fa-stable.git] / admin / view_print_transaction.php
index 48a0e176c2aa5b0e2b11599ad47a19b8595477a4..69a52f4350eb5b98651c18b5526ed0ac75ae4ffa 100644 (file)
@@ -50,13 +50,13 @@ function check_valid_entries()
 {
        if (!is_numeric($_POST['FromTransNo']) OR $_POST['FromTransNo'] <= 0)
        {
-               display_note(_("The starting transaction number is expected to be numeric and greater than zero."));
+               display_error(_("The starting transaction number is expected to be numeric and greater than zero."));
                return false;
        }
 
        if (!is_numeric($_POST['ToTransNo']) OR $_POST['ToTransNo'] <= 0)
        {
-               echo _("The ending transaction number is expected to be numeric and greater than zero.");
+               display_error(_("The ending transaction number is expected to be numeric and greater than zero."));
                return false;
        }
        if (!isset($_POST['filterType']) || $_POST['filterType'] == "")
@@ -100,7 +100,7 @@ function handle_search()
 
                if (db_num_rows($result) == 0)
                {
-                       echo _("There are no transactions for the given parameters.");
+                       display_notification(_("There are no transactions for the given parameters."));
                        return;
                }
                $print_type = $_POST['filterType'];