diff --git a/include/class_itva_popup.php b/include/class_itva_popup.php index f958b8f24..39e60dd09 100644 --- a/include/class_itva_popup.php +++ b/include/class_itva_popup.php @@ -145,9 +145,11 @@ class ITva_Popup extends HtmlInput /*!\brief print in html the readonly value of the widget*/ public function display() { - $r=''; - - $res=sprintf($r,$this->name,$this->value,$this->name); + $cn= new Database(Dossier::id()); + $tva=new Acc_Tva($cn, $this->value); + + $comment=($tva->load() != "-1")? $tva->tva_label:""; + $res=sprintf('%s',$this->name,$this->value,$this->name,$comment); return $res; } /**