[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r5435 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r5435 - phpcompta/trunk/include |
Date: |
Fri, 27 Sep 2013 21:48:41 +0200 (CEST) |
Author: danydb
Date: 2013-09-27 21:48:41 +0200 (Fri, 27 Sep 2013)
New Revision: 5435
Modified:
phpcompta/trunk/include/class_itva_popup.php
Log:
Better printing of VAT
Modified: phpcompta/trunk/include/class_itva_popup.php
===================================================================
--- phpcompta/trunk/include/class_itva_popup.php 2013-09-27 17:08:46 UTC
(rev 5434)
+++ phpcompta/trunk/include/class_itva_popup.php 2013-09-27 19:48:41 UTC
(rev 5435)
@@ -145,9 +145,11 @@
/*!\brief print in html the readonly value of the widget*/
public function display()
{
- $r='<input text name="%s" value="%s" id="%s" disabled>';
-
- $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('<input type="text" name="%s" size="6"
class="input_text_ro" value="%s" id="%s"
readonly="">%s',$this->name,$this->value,$this->name,$comment);
return $res;
}
/**
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r5435 - phpcompta/trunk/include,
phpcompta-dev <=