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