Added confirmation js dialogs for deleting and restoring backup file.
[fa-stable.git] / admin / void_transaction.php
index 402a997e80820add356ef8a73fe7b87103eb22ac..c28c916b48ea15d7b70639f9ccb21c4393081061 100644 (file)
@@ -9,8 +9,8 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$path_to_root="..";
-$page_security = 14;
+$page_security = 'SA_VOIDTRANSACTION';
+$path_to_root = "..";
 include_once($path_to_root . "/includes/session.inc");
 
 include_once($path_to_root . "/includes/date_functions.inc");
@@ -66,6 +66,7 @@ function exist_transaction($type, $type_no)
                                return false;
                        break;
 
+               case 18 : // it's a PO
                case 25 : // it's a GRN
                        return false;
                case 20 : // it's a suppler invoice
@@ -90,6 +91,9 @@ function exist_transaction($type, $type_no)
                                return false;
                        break;
 
+               case 30: // it's a sales order
+               case 32: // it's a sales quotation
+                       return false;
                case systypes::cost_update() : // it's a stock cost update
                        return false;
                        break;