diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 21ab2f0cb47..0e00d586a2e 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -1790,8 +1790,8 @@ if (empty($reshook)) { $lines[$i]->pa_ht, $label, $array_options, - $lines[$i]->situation_percent, - $lines[$i]->fk_prev_id, + $lines[$i]->situation_percent ?? 100, + $lines[$i]->fk_prev_id ?? 0, $lines[$i]->fk_unit, 0, '',