From acc6cc24de7a54613b038403e22662280eb1e7a5 Mon Sep 17 00:00:00 2001 From: FLIO Date: Mon, 5 Jun 2023 18:02:15 +0200 Subject: [PATCH] fixing the total ttc in the multicurrency section --- htdocs/compta/facture/card.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 77ecc4e4a05..16021261e0f 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -4795,7 +4795,6 @@ if ($action == 'create') { if (!empty($conf->global->INVOICE_POSITIVE_CREDIT_NOTE_SCREEN) && $object->type == $object::TYPE_CREDIT_NOTE) { $sign = -1; // We invert sign for output } - print ''; // Amount HT print '' . $langs->trans('AmountHT') . ''; @@ -4843,7 +4842,7 @@ if ($action == 'create') { print '' . price($sign * $object->total_ttc, '', $langs, 0, -1, -1, $conf->currency) . ''; if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { // Multicurrency Amount TTC - print '' . price($sign * $object->total_ttc, '', $langs, 0, -1, -1, $object->multicurrency_code) . ''; + print '' . price($sign * $object->multicurrency_total_ttc, '', $langs, 0, -1, -1, $object->multicurrency_code) . ''; } print '';