From 95c86b230720aed0b796326fefc07b544f3335e8 Mon Sep 17 00:00:00 2001 From: Stan Pinte Date: Tue, 29 Mar 2005 09:04:30 +0000 Subject: [PATCH] Fixed operation annulation --- html/annulation.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/annulation.php b/html/annulation.php index 5c5e5cf9e..e2b16152d 100644 --- a/html/annulation.php +++ b/html/annulation.php @@ -63,7 +63,7 @@ foreach ($l_array as $key=>$element) { } // annulate a operation -if ( isset ($annul) ) { +if ( isset ($_POST['annul']) ) { if ( isset ($_POST['p_id'])) { // Get the current periode $period=GetUserPeriode($cn,$User->id); @@ -108,7 +108,7 @@ if ( isset ($annul) ) { // Test is date is not in a closed periode - // Check if it a centralize operation + // Check if it a centralized operation if ( isValid($cn,$p_id) == 1 ) { // delete from the stock table $sql="delete from stock_goods where sg_id = any ( select sg_id @@ -179,8 +179,8 @@ if ( $a != null ) { echo ' - - + + '; html_page_stop();