diff --git a/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php b/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
index 20969cddf22..b8954e7f5c2 100644
--- a/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
@@ -66,8 +66,11 @@ foreach ($linkedObjectBlock as $key => $objectlink)
}
} ?>
getLibStatut(3, $objectlink->getSommePaiement());
- else echo $objectlink->getLibStatut(3);
+ if (method_exists($objectlink, 'getSommePaiement')) {
+ echo $objectlink->getLibStatut(3, $objectlink->getSommePaiement());
+ } else {
+ echo $objectlink->getLibStatut(3);
+ }
?> |
id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |