/[phpcompta]/phpcompta/html/annulation.php
ViewVC logotype

Diff of /phpcompta/html/annulation.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by stanpinte, Mon Mar 28 14:07:39 2005 UTC revision 1.20 by stanpinte, Tue Mar 29 09:04:30 2005 UTC
# Line 63  foreach ($l_array as $key=>$element) { Line 63  foreach ($l_array as $key=>$element) {
63  }  }
64    
65  // annulate a operation  // annulate a operation
66  if ( isset ($annul) ) {  if ( isset ($_POST['annul']) ) {
67    if ( isset ($_POST['p_id'])) {    if ( isset ($_POST['p_id'])) {
68      // Get the current periode      // Get the current periode
69      $period=GetUserPeriode($cn,$User->id);      $period=GetUserPeriode($cn,$User->id);
# Line 108  if ( isset ($annul) ) { Line 108  if ( isset ($annul) ) {
108    
109     // Test is date is not in a closed periode     // Test is date is not in a closed periode
110    
111   // Check if it a centralize operation   // Check if it a centralized operation
112   if ( isValid($cn,$p_id) ==  1 ) {   if ( isValid($cn,$p_id) ==  1 ) {
113    // delete from the stock table    // delete from the stock table
114     $sql="delete from stock_goods where sg_id = any ( select sg_id     $sql="delete from stock_goods where sg_id = any ( select sg_id
# Line 179  if ( $a != null ) { Line 179  if ( $a != null ) {
179  echo '  echo '
180    
181  <input type="hidden" name="p_id" value="'.$_GET['jrn_op'].'">  <input type="hidden" name="p_id" value="'.$_GET['jrn_op'].'">
182  <input type="submit" name="annul"  value="Effacer">  <input type="submit" name="annul"  value="Annuler">
183  <input type="button" name="cancel" value="Escape" onClick="window.close();">  <input type="button" name="cancel" value="Retour" onClick="window.close();">
184  </form>';  </form>';
185    
186  html_page_stop();  html_page_stop();

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26