Operation details in HTML : done for FIN, it is a basis for the other operations
This commit is contained in:
parent
3551c12a05
commit
c71de125da
2 changed files with 46 additions and 0 deletions
41
include/template/ledger_detail_bottom.php
Normal file
41
include/template/ledger_detail_bottom.php
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<fieldset>
|
||||
<legend>
|
||||
<?
|
||||
echo _('Rapprochement');
|
||||
$oRap=new Acc_Reconciliation($cn);
|
||||
$oRap->jr_id=$jr_id;
|
||||
$aRap=$oRap->get();
|
||||
if ($aRap != null ) {
|
||||
echo '<table>';
|
||||
echo '<tr>';
|
||||
for ($e=0;$e<count($aRap);$e++) {
|
||||
$opRap=new Acc_Operation($cn);
|
||||
$opRap->jr_id=$aRap[$e];
|
||||
$internal=$opRap->get_internal();
|
||||
$amount=$cn->get_value('select jr_montant from jrn where jr_id=$1',array($aRap[$e]));
|
||||
$str="modifyOperation(".$aRap[$e].",".$gDossier.")";
|
||||
|
||||
echo td('<a href="#" onclick="'.$str.'" >'.$internal.'</A>').td($amount);
|
||||
}
|
||||
echo '</tr>';
|
||||
echo '</table>';
|
||||
}
|
||||
?>
|
||||
</legend>
|
||||
<?
|
||||
$search='<INPUT TYPE="BUTTON" class="button" VALUE="Cherche" OnClick="SearchJrn('.$gDossier.",'rapt','".$obj->det->jr_montant."')\">";
|
||||
$rapt=new IText('rapt');
|
||||
echo $rapt->input().$search;
|
||||
?>
|
||||
</fieldset>
|
||||
<?
|
||||
$a=new IButton('Fermer','Fermer');
|
||||
$a->label="Fermer";
|
||||
$a->javascript="removeDiv('".$div."')";
|
||||
echo $a->input();
|
||||
?>
|
||||
<? echo HtmlInput::submit('Sauver','save'); ?>
|
||||
</form>
|
||||
<?
|
||||
require_once('template/ledger_detail_file.php');
|
||||
?>
|
||||
5
include/template/ledger_detail_top.php
Normal file
5
include/template/ledger_detail_top.php
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<div style="text-align:right;height:13px">
|
||||
<?
|
||||
echo '<A style="background-color:blue;color:white;text-decoration:none" HREF="#" onclick="removeDiv(\''.$div.'\');">Fermer</A>';
|
||||
?>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue