diff --git a/htdocs/accountancy/journal/sellsjournal.php b/htdocs/accountancy/journal/sellsjournal.php index 24ed25f56ed..db9af17388a 100644 --- a/htdocs/accountancy/journal/sellsjournal.php +++ b/htdocs/accountancy/journal/sellsjournal.php @@ -141,7 +141,7 @@ if ($result) { // Situation invoices handling $line = new FactureLigne($db); - $line->fetch($obj->id); + $line->fetch($obj->rowid); $prev_progress = $line->get_prev_progress(); if ($obj->situation_percent == 0) { // Avoid divide by 0 $situation_ratio = 0; diff --git a/htdocs/product/composition/card.php b/htdocs/product/composition/card.php index bd878c4ce9d..9e8cd7acef3 100644 --- a/htdocs/product/composition/card.php +++ b/htdocs/product/composition/card.php @@ -290,7 +290,7 @@ if ($id > 0 || ! empty($ref)) } else { - print ''; + print ''; print ''.$langs->trans("None").''; print ''; }