/[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.30 by sparkyx, Wed Sep 28 15:07:47 2005 UTC revision 1.31 by sparkyx, Mon Oct 3 18:56:23 2005 UTC
# Line 62  foreach ($l_array as $key=>$element) { Line 62  foreach ($l_array as $key=>$element) {
62    
63  // cancel an operation  // cancel an operation
64  if ( isset ($_POST['annul']) ) {  if ( isset ($_POST['annul']) ) {
65    ?>
66    <script>
67        if ( window.confirm ('Etes-vous sûr d\'annuler cette opération')  == false) {
68          window.close();
69        }
70    </script>
71    <?
72    if ( isset ($_POST['p_id'])) {    if ( isset ($_POST['p_id'])) {
73      // Get the current periode      // Get the current periode
74      $period=GetUserPeriode($cn,$User->id);      $period=GetUserPeriode($cn,$User->id);
# Line 123  if  ($p_id != -1 ) { // A Line 130  if  ($p_id != -1 ) { // A
130                  j_date,j_montant,j_poste,j_grpt,                                j_date,j_montant,j_poste,j_grpt,              
131                  j_jrn_def,j_debit,j_text,j_internal,j_tech_user                  j_jrn_def,j_debit,j_text,j_internal,j_tech_user
132                  ) select now(),j_montant,j_poste,$grp_new,                  ) select now(),j_montant,j_poste,$grp_new,
133                    j_jrn_def,j_debit,j_text,'$p_internal','".$User->id."'                    j_jrn_def,not (j_debit),j_text,'$p_internal','".$User->id."'
134            from            from
135            jrnx            jrnx
136            where   j_grpt=".$_POST['p_id'];            where   j_grpt=".$_POST['p_id'];

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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