|
@@ -283,7 +283,7 @@ $domData .= ' data-product_type="'.$line->product_type.'"';
|
|
|
|
|
|
<td class="linecoldelete" align="center"><?php $coldisplay++; ?>
|
|
|
<?php
|
|
|
- if (($this->situation_counter == 1 || !$this->situation_cycle_ref) && empty($disableremove)) {
|
|
|
+ if (($line->fk_prev_id == NULL ) && empty($disableremove)) { //La suppression n'est autorisée que si il n'y a pas de ligne dans une précédente situation
|
|
|
print '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $this->id . '&action=ask_deleteline&lineid=' . $line->id . '">';
|
|
|
print img_delete();
|
|
|
print '</a>';
|