diff --git a/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php b/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
index 1e18eb6bfeb..1b81446c243 100644
--- a/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
@@ -85,7 +85,10 @@ foreach ($linkedObjectBlock as $key => $objectlink)
}
}
print '';
- print '
'.$objectlink->getLibStatut(3, $objectlink->getSommePaiement()).' | ';
+ 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 1e5ed8c724c..5bb6e45a8c8 100644
--- a/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
@@ -65,7 +65,10 @@ foreach ($linkedObjectBlock as $key => $objectlink)
echo ''.price($objectlink->total_ht).'';
}
} ?>
- getLibStatut(3, $objectlink->getSommePaiement()); ?> |
+ getLibStatut(3, $objectlink->getSommePaiement());
+ else echo $objectlink->getLibStatut(3);
+ ?> |
id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?> |