diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 2bf7be26b3f..47934fccb16 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -4571,14 +4571,14 @@ else if ($id > 0 || ! empty($ref)) if($object->type == Facture::TYPE_SITUATION) { $retainedWarranty = $total_global_ttc * $object->retained_warranty / 100; - $billedWithRetainedWarranty = $total_global_ttc - $retainedWarranty ; } else { // Because one day retained warranty could be used on standard invoices $retainedWarranty = $object->total_ttc * $object->retained_warranty / 100; - $billedWithRetainedWarranty = $object->total_ttc - $retainedWarranty ; - } + } + + $billedWithRetainedWarranty = $object->total_ttc - $retainedWarranty ; print '