diff --git a/htdocs/accountancy/journal/sellsjournal.php b/htdocs/accountancy/journal/sellsjournal.php
index 24ed25f56ed24fa737b9437e7c3f3d6ad7b08182..db9af17388a00a33bfe6098c6ecd3c7c61a37626 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 bd878c4ce9de4dc873849ef058ca8e9719db7cf3..9e8cd7acef3535d7aeb7e356ddcb75adc9710ac9 100644
--- a/htdocs/product/composition/card.php
+++ b/htdocs/product/composition/card.php
@@ -290,7 +290,7 @@ if ($id > 0 || ! empty($ref))
 			}
 			else
 			{
-				print '<tr clas="impair">';
+				print '<tr class="impair">';
 				print '<td colspan="3">'.$langs->trans("None").'</td>';
 				print '</tr>';
 			}