[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 139/173: Fix cosmetic and typo
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 139/173: Fix cosmetic and typo |
Date: |
Mon, 22 Mar 2021 12:59:12 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 65c4fed8e120070596727deaa147aea67b1a2c0f
Author: Dany De Bontridder <danydb@noalyss.eu>
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 de2758b..44a5ea0 100644
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@ -1177,7 +1177,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 81426e6..8bb0043 100644
--- a/include/class/acc_ledger_sold.class.php
+++ b/include/class/acc_ledger_sold.class.php
@@ -1262,7 +1262,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 c2df339..e00dd84 100644
--- a/include/template/form_ledger_detail.php
+++ b/include/template/form_ledger_detail.php
@@ -37,7 +37,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] 108/173: Bug with p_jrn, (continued)
- [Noalyss-commit] [noalyss] 108/173: Bug with p_jrn, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 109/173: Task #1759 = PRINTBAL sur 4 colonnes, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 112/173: Save_form_plan must use the array, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 116/173: Merge branch 'dev7102' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 119/173: improve test for fiche get_row, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 134/173: Merge branch 'dev7202' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 135/173: Merge branch 'dev7220' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 137/173: Fiche.Test : add test cmp_name and get_row, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 145/173: Merge branch 'entreprise' into next-release-8, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 138/173: Test Unit Acc_Account_Legder , rounded value fixed, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 139/173: Fix cosmetic and typo,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 147/173: Error : duplicate function update_row, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 151/173: htmlspecialchars use HTML5 and UTF8, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 114/173: fixup! Printtva , under some circumstance tva_summary::check fails, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 131/173: Merge branch 'dev-7201' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 142/173: Merge commit 'db9d4c53d1325b1ab3c8a3fcae6ddd201799fb42' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 146/173: Merge branch 'pre7300' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 150/173: Include Bootstrap, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 154/173: create dossier, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 169/173: Task #1907: Gestion : événement ajout de lien hyperlnk, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 101/173: task #0001698: Problème affichage historique fiches Prevent direct use of http_request translation Cosmetic, Dany De Bontridder, 2021/03/22