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); |
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']; |