diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index 0fe82b9e7f1..072aa9e67b2 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -4453,7 +4453,7 @@ if ($action == 'create') {
if ($result > 0) {
print ' ';
$s = $langs->trans("CreditNoteConvertedIntoDiscount", '{s1}', '{s2}');
- $s = str_replace('{s1}', $object->getLibType(1), $s);
+ $s = str_replace('{s1}', $object->getLibType(0), $s);
$s = str_replace('{s2}', $discount->getNomUrl(1, 'discount'), $s);
print $s;
print '
';