Warning text included in front of GRNs that can be removed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 19 Oct 2008 08:22:13 +0000 (08:22 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 19 Oct 2008 08:22:13 +0000 (08:22 +0000)
purchasing/supplier_invoice_grns.php

index 11c8a6363f8bf831ca8fbabcd6a6c0414ff05a15..1b2d25b34c59287e4bd4ea3b3ace20396374f029 100644 (file)
@@ -139,6 +139,9 @@ function display_grn_items_for_selection()
     /*Set up a table to show the outstanding GRN items for selection */
 
     display_heading2(_("Items Received Yet to be Invoiced"));
+    if ($_SESSION["wa_current_user"]->access == 2)     // Added 2008-10-18 by Joe Hunt. Only admins can remove GRNs
+       display_note(_("WARNING! Be careful with removal. The operation is executed immediately and cannot be undone !!!"), 0, 0, "class='overduefg'");
+    //function display_note($msg, $br=0, $br2=0, $extra="")    
        //div_start('grn_table');
     start_table("$table_style colspan=7 width=95%");
     $th = array(_("Delivery"), _("Sequence #"), _("P.O."), _("Item"), _("Description"),