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;