Author: danydb
Date: 2012-06-02 13:21:47 +0200 (Sat, 02 Jun 2012)
New Revision: 4857

Modified:
   phpcompta/trunk/include/class_itva_popup.php
Log:
Fix bug in itva

Modified: phpcompta/trunk/include/class_itva_popup.php
===================================================================
--- phpcompta/trunk/include/class_itva_popup.php        2012-06-02 10:56:42 UTC 
(rev 4856)
+++ phpcompta/trunk/include/class_itva_popup.php        2012-06-02 11:21:47 UTC 
(rev 4857)
@@ -37,7 +37,7 @@
     // You must add the attributes gDossier, popup
     $tva->set_attribute('popup','popup_tva');
     $tva->set_attribute('gDossier',dossier::id());
- 
+
     // We can add a label for the code
     $tva->add_label('code');
     $tva->js='onchange="set_tva_label(this);"';
@@ -73,7 +73,7 @@
     {
         $this->name=($p_name==null)?$this->name:$p_name;
         $this->value=($p_value==null)?$this->value:$p_value;
-        $this->js=(isset($this->js))?$this->js:"format_number(this);";
+        
$this->js=(isset($this->js))?$this->js:'onchange="format_number(this);"';
         if ( $this->readOnly==true) return $this->display();
 
         $str='<input type="TEXT" class="input_text" name="%s" value="%s" 
id="%s" size="3" %s>';
@@ -114,7 +114,7 @@
      *@brief show a button, if it is pushed show a popup to select the need vat
      *@note
      * - a ipopup must be created before with the name popup_tva
-     * - the javascript scripts.js must be loaded 
+     * - the javascript scripts.js must be loaded
      *@return string with html code
      */
     function dbutton()



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu

_______________________________________________
Phpcompta  est un logiciel libre de comptabilit&#233; en ligne 
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to