noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 40/46: Fix cosmetic and typo


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 40/46: Fix cosmetic and typo
Date: Mon, 4 May 2020 13:38:55 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 3eaa95387bbdde0855969b08c8b619f653e435d3
Author: Dany De Bontridder <address@hidden>
AuthorDate: Sat Apr 4 16:15:18 2020 +0200

    Fix cosmetic and typo
---
 include/class/acc_ledger_purchase.class.php        | 2 +-
 include/class/acc_ledger_sold.class.php            | 2 +-
 include/lib/idate.class.php                        | 4 +---
 include/template/form_ledger_detail.php            | 2 +-
 unit-test/include/class/acc_ledger_search.Test.php | 2 +-
 unit-test/include/class/acc_ledger_sold.Test.php   | 3 ++-
 6 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/include/class/acc_ledger_purchase.class.php 
b/include/class/acc_ledger_purchase.class.php
index d6bd3ff..5b6fe18 100644
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@ -1079,7 +1079,7 @@ class  Acc_Ledger_Purchase extends Acc_Ledger
         
         if ($wLedger == null) throw  new Exception(_('Pas de journal 
disponible'));
         
$wLedger->javascript="onChange='update_predef(\"ach\",\"f\",\"".$_REQUEST['ac']."\");$add_js'";
-        $wLedger->table=1;
+        $wLedger->table=0;
         $f_jrn=$wLedger->input();
 
         // Comment
diff --git a/include/class/acc_ledger_sold.class.php 
b/include/class/acc_ledger_sold.class.php
index 4e0e7c5..1979e75 100644
--- a/include/class/acc_ledger_sold.class.php
+++ b/include/class/acc_ledger_sold.class.php
@@ -1097,7 +1097,7 @@ EOF;
         $wLedger = $this->select_ledger('VEN', 2,FALSE);
         if ($wLedger == null)
             throw new Exception(_('Pas de journal disponible'));
-        $wLedger->table = 1;
+        $wLedger->table = 0;
         $wLedger->javascript = 
"onChange='update_predef(\"ven\",\"f\",\"".$_REQUEST['ac']."\");$add_js'";
         $wLedger->label = " Journal " . Icon_Action::infobulle(2);
 
diff --git a/include/lib/idate.class.php b/include/lib/idate.class.php
index f61901f..ea1a105 100644
--- a/include/lib/idate.class.php
+++ b/include/lib/idate.class.php
@@ -56,7 +56,6 @@ class IDate extends HtmlInput
         if ($this->readOnly==true)
             return $this->display();
         if ($this->id=="")             
$this->id=self::generate_id($this->name);
-        $t= 'title="'.$this->title.'" ';
         $autofocus=($this->autofocus)?" autofocus ":"";
         
         $r=sprintf('
@@ -66,7 +65,6 @@ class IDate extends HtmlInput
                  value ="%s" 
                  placeholder="%s"
                  title="%s"
-                 %s
                  pattern="[0-9]{1,2}.[0-9]{1,2}.[0-9]{4}"
                 />
                 <span  class="smallbutton icon"
@@ -74,7 +72,7 @@ class IDate extends HtmlInput
                 />
                 &#xe811;
                 </span>
-                
',$this->name,$this->id,$this->value,$this->placeholder,$this->title,$t,$this->id
+                
',$this->name,$this->id,$this->value,$this->placeholder,$this->title,$this->id
                 );
         
         $r.=sprintf('<script type="text/javascript">
diff --git a/include/template/form_ledger_detail.php 
b/include/template/form_ledger_detail.php
index a6357d5..5efb63c 100644
--- a/include/template/form_ledger_detail.php
+++ b/include/template/form_ledger_detail.php
@@ -36,7 +36,7 @@
     <tr>
         <td><?php echo $f_type?></td>
         <td>
-            <?php echo $f_client_qcode?><?php echo $f_client_bt?><?php echo 
$str_add_button_tiers;?> <?php echo $f_client?></td>
+            <?php echo $f_client_qcode?><?php echo $f_client_bt?><?php echo 
$str_add_button_tiers;?> <?php echo $f_client?>
         </td>
     </tr>
     
diff --git a/unit-test/include/class/acc_ledger_search.Test.php 
b/unit-test/include/class/acc_ledger_search.Test.php
index a0e672e..9109a07 100644
--- a/unit-test/include/class/acc_ledger_search.Test.php
+++ b/unit-test/include/class/acc_ledger_search.Test.php
@@ -87,7 +87,7 @@ class Acc_Ledger_Test extends TestCase
          put_global(array(["key"=>"ac","value"=>"phpunit"]));
         $ledger=new Acc_Ledger_Search('ALL');
         $r=$ledger->display_search_form();
-        $this->assertEquals(9068,strlen($r),"Size of the html string for 
display_search_form");
+        $this->assertEquals(9066,strlen($r),"Size of the html string for 
display_search_form");
     }
     /**
      * @covers ::build_search_filter
diff --git a/unit-test/include/class/acc_ledger_sold.Test.php 
b/unit-test/include/class/acc_ledger_sold.Test.php
index 726f69a..4632397 100644
--- a/unit-test/include/class/acc_ledger_sold.Test.php
+++ b/unit-test/include/class/acc_ledger_sold.Test.php
@@ -196,6 +196,7 @@ class Acc_Ledger_SoldTest extends TestCase
         $object=new Acc_Ledger_Sold($g_connection, 2);
         
         $info=$object->input($this->array);
+       // var_dump($info);
         if (!is_string($info))
         {
             $this->assertTrue(FALSE);
@@ -208,7 +209,7 @@ class Acc_Ledger_SoldTest extends TestCase
         $this->assertContains(
                 '<INPUT TYPE="TEXT"  class="input_text"  id="e_pj" name="e_pj" 
value="VEN10" placeholder="" title=""',
                 $info);
-        $this->assertContains('ID="add_item" VALUE="Ajout article"  
onClick="ledger_add_row()">', $info);
+        $this->assertContains('ID="add_item" VALUE="ligne à ajouter"  
onClick="ledger_add_multiple', $info);
     }
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]