From 9c657206b3ddf2268452f7ab4c5b6792ddf5c75f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 23 Jun 2021 10:47:51 +0200 Subject: [PATCH] Update linkedobjectblock.tpl.php --- htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); + } ?> ">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?>