Task #1045 - Amélioration apparence :
Détail opération : avec onglet + action liée (ajout + suppression)
This commit is contained in:
parent
cbd188fb6d
commit
bbf9fb1dd0
10 changed files with 291 additions and 249 deletions
|
|
@ -600,7 +600,7 @@ class Acc_Ledger extends jrn_def_sql
|
|||
* @param$sql is the sql stmt, normally created by build_search_sql
|
||||
* @param$offset the offset
|
||||
* @param$p_paid if we want to see info about payment
|
||||
\code
|
||||
@code
|
||||
// Example
|
||||
// Build the sql
|
||||
list($sql,$where)=$Ledger->build_search_sql($_GET);
|
||||
|
|
@ -618,12 +618,12 @@ class Acc_Ledger extends jrn_def_sql
|
|||
// show nav bar
|
||||
echo $bar;
|
||||
|
||||
\endcode
|
||||
* \see build_search_sql
|
||||
* \see display_search_form
|
||||
* \see search_form
|
||||
@endcode
|
||||
* @see build_search_sql
|
||||
* @see display_search_form
|
||||
* @see search_form
|
||||
|
||||
* \return HTML string
|
||||
* @return HTML string
|
||||
*/
|
||||
|
||||
public function list_operation_to_reconcile($sql)
|
||||
|
|
|
|||
|
|
@ -871,7 +871,7 @@ class Acc_Ledger_Sold extends Acc_Ledger {
|
|||
$fname = new Fiche($this->db);
|
||||
$fname->get_by_qcode(${'e_mp_qcode_' . $e_mp});
|
||||
$r.='<h2>' . "Payé par " . ${'e_mp_qcode_' . $e_mp} .
|
||||
" " . $fname->getName() . '</H2> ' . '<p class="decale">' . _('Déduction acompte ') . h($acompte) . '</p>' .
|
||||
" " . $fname->getName() . '</h2> ' . '<p class="decale">' . _('Déduction acompte ') . h($acompte) . '</p>' .
|
||||
_('Libellé :') . h($e_comm_paiement) ;
|
||||
$r.='<br>';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,18 +85,18 @@
|
|||
</tr>
|
||||
|
||||
</table>
|
||||
</td><td>
|
||||
<table style="border:solid 1px yellow">
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td style="width:50%;height:100%;vertical-align:top;text-align: center">
|
||||
<table style="width:99%;height:100%;vertical-align:top;">
|
||||
<tr style="height: 5%">
|
||||
<td style="text-align:center;vertical-align: top">
|
||||
Note
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<td style="text-align:center;vertical-align: top">
|
||||
<?php
|
||||
$inote = new ITextarea('jrn_note');
|
||||
$inote->width = 25;
|
||||
$inote->heigh = 5;
|
||||
$inote->style=' class="itextarea" style="width:90%;height:100%;"';
|
||||
$inote->value = strip_tags($obj->det->note);
|
||||
echo $inote->input();
|
||||
?>
|
||||
|
|
@ -245,83 +245,8 @@
|
|||
|
||||
|
||||
</div>
|
||||
<div class="myfieldset">
|
||||
<h1 class="legend"><?php echo _('Ecritures comptables') ?></h1>
|
||||
|
||||
|
||||
<?php
|
||||
/* 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 . '" class="content" 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 class="content">';
|
||||
$detail = new Acc_Misc($cn, $obj->jr_id);
|
||||
$detail->get();
|
||||
?>
|
||||
<table class="result">
|
||||
<tr>
|
||||
<?php
|
||||
echo th(_('Poste Comptable'));
|
||||
echo th(_('Quick Code'));
|
||||
echo th(_('Libellé'));
|
||||
echo th(_('Débit'), ' style="text-align:right"');
|
||||
echo th(_('Crédit'), ' style="text-align:right"');
|
||||
echo '</tr>';
|
||||
for ($e = 0; $e < count($detail->det->array); $e++)
|
||||
{
|
||||
$row = '';
|
||||
$q = $detail->det->array;
|
||||
$view_history = sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:view_history_account(\'%s\',\'%s\')" >%s</A>', $q[$e]['j_poste'], $gDossier, $q[$e]['j_poste']);
|
||||
|
||||
$row.=td($view_history);
|
||||
if ($q[$e]['j_qcode'] != '')
|
||||
{
|
||||
$fiche = new Fiche($cn);
|
||||
$fiche->get_by_qcode($q[$e]['j_qcode']);
|
||||
$view_history = sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:view_history_card(\'%s\',\'%s\')" >%s</A>', $fiche->id, $gDossier, $q[$e]['j_qcode']);
|
||||
} else
|
||||
$view_history = '';
|
||||
$row.=td($view_history);
|
||||
|
||||
if ($q[$e]['j_text']=="")
|
||||
{
|
||||
if ($q[$e]['j_qcode'] != '')
|
||||
{
|
||||
// nom de la fiche
|
||||
$ff = new Fiche($cn);
|
||||
$ff->get_by_qcode($q[$e]['j_qcode']);
|
||||
$row.=td($ff->strAttribut(h(ATTR_DEF_NAME)));
|
||||
} else
|
||||
{
|
||||
// libellé du compte
|
||||
$name = $cn->get_value('select pcm_lib from tmp_pcmn where pcm_val=$1', array($q[$e]['j_poste']));
|
||||
$row.=td(h($name));
|
||||
}
|
||||
}
|
||||
else
|
||||
$row.=td(h($q[$e]['j_text']));
|
||||
|
||||
$montant = td(nbm($q[$e]['j_montant']), 'class="num"');
|
||||
$row.=($q[$e]['j_debit'] == 't') ? $montant : td('');
|
||||
$row.=($q[$e]['j_debit'] == 'f') ? $montant : td('');
|
||||
$class=($e%2==0)?' class="even"':'class="odd"';
|
||||
|
||||
echo tr($row,$class);
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once('ledger_detail_bottom.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,122 @@
|
|||
<?php
|
||||
/**
|
||||
//This file is part of NOALYSS and is under GPL
|
||||
//see licence.txt
|
||||
*/
|
||||
/**
|
||||
* @brief show the common parts of operation details
|
||||
*
|
||||
* Variables : $div = popup or box (det[0-9]
|
||||
*
|
||||
*/
|
||||
$a_tab['writing_div']=array('id'=>'writing_div'.$div,'label'=>_('Ecriture Comptable'),'display'=>'none');
|
||||
$a_tab['info_operation_div']=array('id'=>'info_operation_div'.$div,'label'=>_('Information'),'display'=>'none');
|
||||
$a_tab['linked_operation_div']=array('id'=>'linked_operation_div'.$div,'label'=>_('Opérations liées'),'display'=>'none');
|
||||
$a_tab['document_operation_div']=array('id'=>'document_operation_div'.$div,'label'=>_('Document'),'display'=>'block');
|
||||
$a_tab['linked_action_div']=array('id'=>'linked_action_div'.$div,'label'=>_('Actions liées'),'display'=>'none');
|
||||
|
||||
// show tabs
|
||||
if ( $div != "popup") :
|
||||
$a_tab['document_operation_div']['display']='block';
|
||||
?>
|
||||
<ul class="tabs">
|
||||
<?php foreach ($a_tab as $idx=>$a_value): ?>
|
||||
<?php
|
||||
$class=($a_value['display']=='block') ?"tabs_selected":"tabs"
|
||||
?>
|
||||
<li class="<?php echo $class?>">
|
||||
<?php $div_tab_id=$a_value['id'];?>
|
||||
<a href="javascript:void(0)" onclick="unselect_other_tab(this.parentNode.parentNode);var tab=Array('writing_div<?php echo $div?>','info_operation_div<?php echo $div?>','linked_operation_div<?php echo $div?>','document_operation_div<?php echo $div?>','linked_action_div<?php echo $div?>');this.parentNode.className='tabs_selected' ;show_tabs(tab,'<?php echo $div_tab_id; ?>');"><?php echo $a_value['label']?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php
|
||||
else :
|
||||
foreach ($a_tab as $idx=>$a_value):
|
||||
$a_tab[$idx]['display']='block';
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
$cmd=new IText('BON_COMMANDE',$obj->info->command);
|
||||
$other=new IText('OTHER',$obj->info->other);
|
||||
?>
|
||||
<div class="myfieldset">
|
||||
<h1 class="legend"><?php echo _("Information")?></h1>
|
||||
<div id="writing_div<?php echo $div;?>" class="myfieldset" style="display:<?php echo $a_tab['writing_div']['display']?>">
|
||||
<?php
|
||||
// display title only in popup
|
||||
if ($div == 'popup') :
|
||||
?>
|
||||
<h1 class="legend"><?php echo $a_tab['writing_div']['label']?></h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="content">
|
||||
<?php
|
||||
$detail = new Acc_Misc($cn, $obj->jr_id);
|
||||
$detail->get();
|
||||
?>
|
||||
<table class="result">
|
||||
<tr>
|
||||
<?php
|
||||
echo th(_('Poste Comptable'));
|
||||
echo th(_('Quick Code'));
|
||||
echo th(_('Libellé'));
|
||||
echo th(_('Débit'), ' style="text-align:right"');
|
||||
echo th(_('Crédit'), ' style="text-align:right"');
|
||||
echo '</tr>';
|
||||
for ($e = 0; $e < count($detail->det->array); $e++)
|
||||
{
|
||||
$row = '';
|
||||
$q = $detail->det->array;
|
||||
$view_history = sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:view_history_account(\'%s\',\'%s\')" >%s</A>', $q[$e]['j_poste'], $gDossier, $q[$e]['j_poste']);
|
||||
|
||||
$row.=td($view_history);
|
||||
if ($q[$e]['j_qcode'] != '')
|
||||
{
|
||||
$fiche = new Fiche($cn);
|
||||
$fiche->get_by_qcode($q[$e]['j_qcode']);
|
||||
$view_history = sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:view_history_card(\'%s\',\'%s\')" >%s</A>', $fiche->id, $gDossier, $q[$e]['j_qcode']);
|
||||
} else
|
||||
$view_history = '';
|
||||
$row.=td($view_history);
|
||||
|
||||
if ($q[$e]['j_text']=="")
|
||||
{
|
||||
if ($q[$e]['j_qcode'] != '')
|
||||
{
|
||||
// nom de la fiche
|
||||
$ff = new Fiche($cn);
|
||||
$ff->get_by_qcode($q[$e]['j_qcode']);
|
||||
$row.=td($ff->strAttribut(h(ATTR_DEF_NAME)));
|
||||
} else
|
||||
{
|
||||
// libellé du compte
|
||||
$name = $cn->get_value('select pcm_lib from tmp_pcmn where pcm_val=$1', array($q[$e]['j_poste']));
|
||||
$row.=td(h($name));
|
||||
}
|
||||
}
|
||||
else
|
||||
$row.=td(h($q[$e]['j_text']));
|
||||
|
||||
$montant = td(nbm($q[$e]['j_montant']), 'class="num"');
|
||||
$row.=($q[$e]['j_debit'] == 't') ? $montant : td('');
|
||||
$row.=($q[$e]['j_debit'] == 'f') ? $montant : td('');
|
||||
$class=($e%2==0)?' class="even"':'class="odd"';
|
||||
|
||||
echo tr($row,$class);
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="info_operation_div<?php echo $div;?>" class="myfieldset" style="display:<?php echo $a_tab['info_operation_div']['display']?>">
|
||||
<?php
|
||||
// display title only in popup
|
||||
if ($div == 'popup') :
|
||||
?>
|
||||
<h1 class="legend"><?php echo $a_tab['info_operation_div']['label']?></h1>
|
||||
<?php endif; ?>
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php echo _(" Bon de commande")?> :</td><td> <?php echo HtmlInput::infobulle(31)." ".$cmd->input(); ?></td>
|
||||
|
|
@ -13,10 +126,13 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="myfieldset">
|
||||
<h1 class="legend">
|
||||
<?php echo _('Opérations liées');?>
|
||||
</h1>
|
||||
<div id="linked_operation_div<?php echo $div;?>" style="display:<?php echo $a_tab['linked_operation_div']['display']?>" class="myfieldset">
|
||||
<?php
|
||||
// display title only in popup
|
||||
if ($div == 'popup') :
|
||||
?>
|
||||
<h1 class="legend"><?php echo $a_tab['linked_operation_div']['label']?></h1>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$oRap=new Acc_Reconciliation($cn);
|
||||
$oRap->jr_id=$jr_id;
|
||||
|
|
@ -62,32 +178,38 @@ if ( $access=='W') {
|
|||
</div>
|
||||
<?php
|
||||
$array = Follow_Up::get_all_operation($jr_id);
|
||||
if (count($array) > 0)
|
||||
{
|
||||
?>
|
||||
<div class="myfieldset">
|
||||
<h1 class="legend">Actions liées</h1>
|
||||
<div id="linked_action_div<?php echo $div;?>" style="display:<?php echo $a_tab['linked_action_div']['display']?>" class="myfieldset">
|
||||
<?php
|
||||
// display title only in popup
|
||||
if ($div == 'popup') :
|
||||
?>
|
||||
<h1 class="legend"><?php echo $a_tab['linked_action_div']['label']?></h1>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
/**
|
||||
* show eventually action
|
||||
* show possible linked actions
|
||||
*/
|
||||
$array = Follow_Up::get_all_operation($jr_id);
|
||||
echo '<ul style="list-style-type:square;">';
|
||||
for ($i = 0; $i < count($array); $i++)
|
||||
{
|
||||
$remove='';
|
||||
if ( $access=='W') $remove=HtmlInput::button_action_remove_operation($array[$i]['ago_id']);
|
||||
if ( $div == 'popup')
|
||||
{
|
||||
echo '<li>'.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),0).'</li>';
|
||||
echo '<li id="op'.$array[$i]['ago_id'].'">'.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),0).$remove.'</li>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<li>'.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),1).'</li>';
|
||||
echo '<li id="op'.$array[$i]['ago_id'].'">'.HtmlInput::detail_action($array[$i]['ag_id'], h($array[$i]['ag_ref']." ".$array[$i]['ag_title']),1).$remove.'</li>';
|
||||
}
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
$related=new IRelated_Action('related');
|
||||
$related->id='related'.$div;
|
||||
if ( $access=='W') echo $related->input();
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@
|
|||
$str='?'.dossier::get()."&div=$div&act=file&jr_id=$jr_id";
|
||||
if ( isset ($_REQUEST['ajax'])) $str.="&ajax=1";
|
||||
?>
|
||||
<div class="noprint">
|
||||
<div id="document_operation_div<?php echo $div;?>" class="noprint" style="display:<?php echo $a_tab['document_operation_div']['display']?>">
|
||||
<iframe frameborder=0 scrolling="no" style="margin:0px;padding: 0px;border:0px;width:100%;height:90px;overflow:hidden" src="<?php echo 'ajax_ledger.php'.$str; ?>"></iframe>
|
||||
</div>
|
||||
|
|
@ -67,26 +67,27 @@ echo td(_('Pièce')).td($itext->input());
|
|||
|
||||
</tr>
|
||||
</table>
|
||||
</td><td style='width:50%'>
|
||||
<table style="width:100%;border:solid 1px yellow">
|
||||
<tr>
|
||||
<td>
|
||||
Note
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$inote=new ITextarea('jrn_note');
|
||||
$inote->width=25;
|
||||
$inote->heigh=5;
|
||||
$inote->value=strip_tags($obj->det->note);
|
||||
echo $inote->input();
|
||||
?>
|
||||
</td>
|
||||
<td style="width:50%;height:100%;vertical-align:top;text-align: center">
|
||||
<table style="width:99%;height:100%;vertical-align:top;">
|
||||
<tr style="height: 5%">
|
||||
<td style="text-align:center;vertical-align: top">
|
||||
Note
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td style="text-align:center;vertical-align: top">
|
||||
<?php
|
||||
$inote = new ITextarea('jrn_note');
|
||||
$inote->style=' class="itextarea" style="width:90%;height:100%;"';
|
||||
$inote->value = strip_tags($obj->det->note);
|
||||
echo $inote->input();
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
|
|||
|
|
@ -53,27 +53,26 @@ require_once ('class_anc_plan.php');
|
|||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style='width:50%'>
|
||||
<table style="width:100%;border:solid 1px yellow">
|
||||
<tr>
|
||||
<td>
|
||||
Note
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$inote=new ITextarea('jrn_note');
|
||||
$inote->width=25;
|
||||
$inote->heigh=5;
|
||||
$inote->value=strip_tags($obj->det->note);
|
||||
echo $inote->input();
|
||||
?>
|
||||
<td style="width:50%;height:100%;vertical-align:top;text-align: center">
|
||||
<table style="width:99%;height:100%;vertical-align:top;">
|
||||
<tr style="height: 5%">
|
||||
<td style="text-align:center;vertical-align: top">
|
||||
Note
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td style="text-align:center;vertical-align: top">
|
||||
<?php
|
||||
$inote = new ITextarea('jrn_note');
|
||||
$inote->style=' class="itextarea" style="width:90%;height:100%;"';
|
||||
$inote->value = strip_tags($obj->det->note);
|
||||
echo $inote->input();
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
|
|||
|
|
@ -94,26 +94,26 @@ echo $ipaid->input();
|
|||
|
||||
</table>
|
||||
</td>
|
||||
<td style='width:50%'>
|
||||
<table style="width:100%;border:solid 1px yellow">
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo _("Note")?>
|
||||
<td style="width:50%;height:100%;vertical-align:top;text-align: center">
|
||||
<table style="width:99%;height:100%;vertical-align:top;">
|
||||
<tr style="height: 5%">
|
||||
<td style="text-align:center;vertical-align: top">
|
||||
Note
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$inote = new ITextarea('jrn_note');
|
||||
$inote->width = 25;
|
||||
$inote->heigh = 5;
|
||||
$inote->value = strip_tags($obj->det->note);
|
||||
echo $inote->input();
|
||||
?>
|
||||
<td style="text-align:center;vertical-align: top">
|
||||
<?php
|
||||
$inote = new ITextarea('jrn_note');
|
||||
$inote->style=' class="itextarea" style="width:90%;height:100%;"';
|
||||
$inote->value = strip_tags($obj->det->note);
|
||||
echo $inote->input();
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<div class="myfieldset">
|
||||
|
|
@ -248,78 +248,7 @@ echo $inote->input();
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="myfieldset">
|
||||
<h1 class="legend">
|
||||
<?php echo _('Ecritures comptables') ?>
|
||||
</h1>
|
||||
<?php
|
||||
/* 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();
|
||||
?>
|
||||
|
||||
<table class="result">
|
||||
<tr>
|
||||
<?php
|
||||
echo th(_('Poste Comptable'));
|
||||
echo th(_('Quick Code'));
|
||||
echo th(_('Libellé'));
|
||||
echo th(_('Débit'), ' style="text-align:right"');
|
||||
echo th(_('Crédit'), ' style="text-align:right"');
|
||||
echo '</tr>';
|
||||
for ($e = 0; $e < count($detail->det->array); $e++)
|
||||
{
|
||||
$row = '';
|
||||
$q = $detail->det->array[$e];
|
||||
$view_history = sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:view_history_account(\'%s\',\'%s\')" >%s</A>', $q['j_poste'], $gDossier, $q['j_poste']);
|
||||
|
||||
$row.=td($view_history);
|
||||
if ($q['j_qcode'] != '')
|
||||
{
|
||||
$fiche = new Fiche($cn);
|
||||
$fiche->get_by_qcode($q['j_qcode']);
|
||||
$view_history = sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:view_history_card(\'%s\',\'%s\')" >%s</A>', $fiche->id, $gDossier, $q['j_qcode']);
|
||||
} else
|
||||
$view_history = '';
|
||||
$row.=td($view_history);
|
||||
|
||||
if ($q['j_qcode'] != '')
|
||||
{
|
||||
// nom de la fiche
|
||||
$ff = new Fiche($cn);
|
||||
$ff->get_by_qcode($q['j_qcode']);
|
||||
$row.=td($ff->strAttribut(h(ATTR_DEF_NAME)));
|
||||
} else
|
||||
{
|
||||
// libellé du compte
|
||||
$name = $cn->get_value('select pcm_lib from tmp_pcmn where pcm_val=$1', array($q['j_poste']));
|
||||
$row.=td(h($name));
|
||||
}
|
||||
$montant = td(nbm($q['j_montant']), 'class="num"');
|
||||
$row.=($q['j_debit'] == 't') ? $montant : td('');
|
||||
$row.=($q['j_debit'] == 'f') ? $montant : td('');
|
||||
$class=($e%2==0)?' class="even"':'class="odd"';
|
||||
echo tr($row,$class);
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once('ledger_detail_bottom.php');
|
||||
?>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue