[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
/>

</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);
}
- [Noalyss-commit] [noalyss] 17/46: Task #1756: Avertissement qcode, (continued)
- [Noalyss-commit] [noalyss] 17/46: Task #1756: Avertissement qcode, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 21/46: if you want to modify the accounting , it must not be used before., Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 26/46: Task #0001793: Installation mot de passe, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 32/46: Task #0001793: Installation mot de passe Empêche @mobile , doc, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 34/46: Bug #0001245: Type actif - passif pour nouvelle fiche à partir de fiche Erreur dans PARM_POSTE pour la compta française, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 35/46: Bug #0001245: Type actif - passif pour nouvelle fiche à partir de fiche Erreur dans PARM_POSTE pour la compta française, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 28/46: Task #0001793: Installation mot de passe remove debug info, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 33/46: Task #1277 : RTF conversion char accentuated, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 36/46: Merge branch 'dev7202', Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 38/46: Fiche.Test : add test cmp_name and get_row, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 40/46: Fix cosmetic and typo,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 22/46: HtmlOutput tab , add mode row, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 27/46: Task #0001793: Installation mot de passe, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 29/46: Task #0001793: Installation mot de passe for password , use NOALYSS_ADMIN_PASSWORD, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 31/46: Task #0001793: Installation mot de passe Adapt comment, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 37/46: Bug database.class.php : n'applique pas le patch, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 39/46: Test Unit Acc_Account_Legder , rounded value fixed, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 41/46: Cleanup + new logo, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 43/46: Improve installation for MONO : doc + password, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 45/46: Output_Tab : set mode to row by default + cosmetic, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 46/46: Merge branch 'dev7220' into pre7300, Dany De Bontridder, 2020/05/04