FS#122, by default in the detail of operation for sale and purchase, the details of accountancy are hidden, and get visible thanks a button
This commit is contained in:
parent
564b244d07
commit
d9f8773817
2 changed files with 34 additions and 3 deletions
|
|
@ -132,11 +132,25 @@ echo tr($row);
|
|||
<fieldset>
|
||||
<legend>
|
||||
<?=_('Ecritures comptables')?>
|
||||
</legend>
|
||||
|
||||
<?
|
||||
$detail=new Acc_Misc($cn,$obj->jr_id);
|
||||
/* if it is not in a popup, the details are hidden */
|
||||
if ( $div != 'popup') {
|
||||
$ib=new IButton ("a".$div);
|
||||
$ib->label='Afficher';
|
||||
$ib->javascript="g('detail_".$div."').style.display='block';g('a".$div."').style.display='none';";
|
||||
echo $ib->input();
|
||||
echo '<div id="detail_'.$div.'" style="display:none">';
|
||||
$ib=new IButton ("h".$div);
|
||||
$ib->label='Cacher';
|
||||
$ib->javascript="g('detail_".$div."').style.display='none';g('a".$div."').style.display='block';";
|
||||
echo $ib->input();
|
||||
} else
|
||||
echo '<div>';
|
||||
$detail=new Acc_Misc($cn,$obj->jr_id);
|
||||
$detail->get();
|
||||
?>
|
||||
</legend>
|
||||
<table class="result">
|
||||
<tr>
|
||||
<?
|
||||
|
|
@ -182,6 +196,7 @@ echo '</tr>';
|
|||
?>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
<?
|
||||
require_once('ledger_detail_bottom.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -133,11 +133,26 @@ echo tr($row);
|
|||
<fieldset>
|
||||
<legend>
|
||||
<?=_('Ecritures comptables')?>
|
||||
</legend>
|
||||
<?
|
||||
/* if it is not in a popup, the details are hidden */
|
||||
if ( $div != 'popup') {
|
||||
$ib=new IButton ("a".$div);
|
||||
$ib->label='Afficher';
|
||||
$ib->javascript="g('detail_".$div."').style.display='block';g('a".$div."').style.display='none';";
|
||||
echo $ib->input();
|
||||
echo '<div id="detail_'.$div.'" style="display:none">';
|
||||
$ib=new IButton ("h".$div);
|
||||
$ib->label='Cacher';
|
||||
$ib->javascript="g('detail_".$div."').style.display='none';g('a".$div."').style.display='block';";
|
||||
echo $ib->input();
|
||||
} else
|
||||
echo '<div>';
|
||||
|
||||
$detail=new Acc_Misc($cn,$obj->jr_id);
|
||||
$detail->get();
|
||||
?>
|
||||
</legend>
|
||||
|
||||
<table class="result">
|
||||
<tr>
|
||||
<?
|
||||
|
|
@ -182,6 +197,7 @@ echo '</tr>';
|
|||
?>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
<?
|
||||
require_once('ledger_detail_bottom.php');
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue