diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index f95d8a11b99..15df715664d 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -2668,11 +2668,11 @@ else
if ($calculationrule == 'totalofround') $calculationrulenum=1;
else $calculationrulenum=2;
// Show link for "recalculate"
- if (empty($object->getVentilExportCompta())) {
- $s=$langs->trans("ReCalculate").' ';
- $s.='id.'&action=calculate&calculationrule=totalofround">'.$langs->trans("Mode1").'';
- $s.=' / ';
- $s.='id.'&action=calculate&calculationrule=roundoftotal">'.$langs->trans("Mode2").'';
+ if ($object->getVentilExportCompta() == 0) {
+ $s = $langs->trans("ReCalculate").' ';
+ $s .= 'id.'&action=calculate&calculationrule=totalofround">'.$langs->trans("Mode1").'';
+ $s .= ' / ';
+ $s .= 'id.'&action=calculate&calculationrule=roundoftotal">'.$langs->trans("Mode2").'';
print $form->textwithtooltip($s, $langs->trans("CalculationRuleDesc", $calculationrulenum).'
'.$langs->trans("CalculationRuleDescSupplier"), 2, 1, img_picto('', 'help'));
}
print '';