From a71be1a1219f37adc898a3f0b780016ed5597e19 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 22 Sep 2022 14:47:32 +0200 Subject: [PATCH] Fix missing test on multicurrency to show remain to pay vendor invoice --- htdocs/fourn/facture/card.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index 0c041a0c1be..7704466d939 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -3518,8 +3518,7 @@ if ($action == 'create') { print ''; print ''.(!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency).' '.price(price2num($object->multicurrency_tx*$resteapayeraffiche, 'MT')).' '; } - } else // Credit note - { + } else { // Credit note $cssforamountpaymentcomplete = 'amountpaymentneutral'; // Total already paid back @@ -3542,7 +3541,7 @@ if ($action == 'create') { print ''.price($sign * $resteapayeraffiche).' '; // Remainder to pay back Multicurrency - if ($object->multicurrency_code != $conf->currency || $object->multicurrency_tx != 1) { + if (isModEnabled('multicurreny') && $object->multicurrency_code != $conf->currency || $object->multicurrency_tx != 1) { print ''; print ''; print $langs->trans('RemainderToPayBackMulticurrency');