diff --git a/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php b/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
index a02a0fc1682..60a4cced4d0 100644
--- a/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
@@ -85,7 +85,14 @@ foreach ($linkedObjectBlock as $key => $objectlink)
}
}
print '';
- print '
'.$objectlink->getLibStatut(3).' | ';
+ print '';
+ if (method_exists($objectlink, 'getSommePaiement')) {
+ print $objectlink->getLibStatut(3, $objectlink->getSommePaiement());
+ }
+ else {
+ print $objectlink->getLibStatut(3);
+ }
+ print ' | ';
print 'id.'&action=dellink&dellinkid='.$key.'">'.img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink').' | ';
print "\n";
}
diff --git a/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php b/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
index 1b85082616a..b8954e7f5c2 100644
--- a/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
@@ -65,7 +65,13 @@ foreach ($linkedObjectBlock as $key => $objectlink)
echo ''.price($objectlink->total_ht).'';
}
} ?>
- getLibStatut(3); ?> |
+ getLibStatut(3, $objectlink->getSommePaiement());
+ } else {
+ echo $objectlink->getLibStatut(3);
+ }
+ ?> |
id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |