Fix empty

This commit is contained in:
Laurent Destailleur 2019-11-24 18:11:11 +01:00
parent eeaef48349
commit 27e4c66dd5

View File

@ -2643,7 +2643,7 @@ else
if ($calculationrule == 'totalofround') $calculationrulenum=1; if ($calculationrule == 'totalofround') $calculationrulenum=1;
else $calculationrulenum=2; else $calculationrulenum=2;
if (empty($object->getVentilExportCompta())) { if ($object->getVentilExportCompta() != 0) {
$s=$langs->trans("ReCalculate").' '; $s=$langs->trans("ReCalculate").' ';
$s.='<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=calculate&calculationrule=totalofround">'.$langs->trans("Mode1").'</a>'; $s.='<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=calculate&calculationrule=totalofround">'.$langs->trans("Mode1").'</a>';
$s.=' / '; $s.=' / ';