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();