0000530: Ajouter la possibilité d'entrer une date par opération dans la saisie du journal de banque

This commit is contained in:
Dany De Bontridder 2012-06-18 19:15:06 +00:00
parent 42cdb4c902
commit bceebcce5c
6 changed files with 184 additions and 59 deletions

View file

@ -3,7 +3,20 @@
<h2 id="jrn_name"> <?=$this->get_name()?></h2>
</div>
<legend><?=$f_legend ?> </legend>
<?
$wchdate=new ISelect('chdate');
$wchdate->value=array(
array('value'=>1,'label'=>"Avec date d'extrait"),
array('value'=>2,'label'=>"Avec date opérations")
);
$wchdate->selected=(isset($chdate))?$chdate:1;
$wchdate->javascript='onchange="show_fin_chdate(\'chdate\')"';
?>
<?=$wchdate->input();?>
<span id="chdate_ext">
<?=_('Date').' '.$f_date ?>
</span>
<?=$f_period?><br>
<?=$f_jrn?><br>
<?=_('Banque')?><?=$f_bank ?>
@ -21,7 +34,7 @@
<fieldset><legend><?=_('Opérations')?></legend>
<table id="fin_item" width="100%" border="0">
<tr>
<!--<th style="text-align: left"><?=_('Date')?><?=HtmlInput::infobulle(16)?></TH> -->
<th id="thdate" style="display:none;text-align: left"><?=_('Date')?><?=HtmlInput::infobulle(16)?></TH>
<th style="text-align: left;width: auto">code<?HtmlInput::infobulle(0)?></TH>
<th style="text-align: left"><?=_('Fiche')?></TH>
<th style="text-align: left"><?=_('Commentaire')?></TH>
@ -29,19 +42,27 @@
<th style="text-align: left;width:auto"colspan="2"> <?=_('Op. Concernée(s)')?></th>
</tr>
<? foreach ($array as $item) {
<?
$i=0;
foreach ($array as $item) {
echo '<tr>';
// echo td($item['dateop']);
echo td($item['dateop'],' style="display:none" id="tdchdate'.$i.'"');
echo td($item['qcode'].$item['search']);
echo td($item['cname']);
echo td($item['comment']);
echo td($item['amount']);
echo td($item['concerned']);
echo '</tr>';
$i++;
}
?>
</table>
</fieldset>
</fieldset>
<script>
show_fin_chdate('chdate');
</script>