Fix cosmetic and typo
This commit is contained in:
parent
c12b3f14d1
commit
3eaa95387b
6 changed files with 7 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue