';
if ( ! isset($_REQUEST['oper_detail']) )
{
Acc_Account_Ledger::HtmlTableHeader();
echo '
';
$Poste->HtmlTable(null,$_GET['ople']);
echo '
';
echo Acc_Account_Ledger::HtmlTableHeader();
}
else
{
//----------------------------------------------------------------------
// Detail
//----------------------------------------------------------------------
Acc_Account_Ledger::HtmlTableHeader();
$Poste->get_row_date( $_GET['from_periode'], $_GET['to_periode'],$_GET['ople']);
if ( empty($Poste->row)) return;
$Poste->load();
echo '
';
echo ''. $_GET['poste_id'].' '.h($Poste->label).' |
';
/* avoid duplicates */
$old=array();
foreach ($Poste->row as $detail)
{
if ( in_array($detail['jr_id'],$old) == TRUE ) continue;
$old[]=$detail['jr_id'];
echo ''.$detail['j_date'].' '.$detail['jr_internal'].h($detail['description']).' |
';
$op=new Acc_Operation($cn);
$op->jr_id=$detail['jr_id'];
$op->poste=$_GET['poste_id'];
echo $op->display_jrnx_detail(1);
}
echo '
';
echo Acc_Account_Ledger::HtmlTableHeader();
}
echo "
";
exit;
}
// A QuickCode is given
if ( $go == 2)
{
if ( ! isset($_REQUEST['oper_detail']) )
{
echo '';
if ( ! isset ($_REQUEST['oper_detail']))
{
$Poste=new Acc_Account_Ledger($cn,$_GET['poste_id']);
echo Acc_Account_Ledger::HtmlTableHeader();
foreach ($a_poste as $poste_id )
{
$Poste=new Acc_Account_Ledger ($cn,$poste_id['pcm_val']);
$Poste->HtmlTable(null,$_GET['ople']);
}
echo Acc_Account_Ledger::HtmlTableHeader();
echo "
";
}
else
{
//----------------------------------------------------------------------
// Detail
//----------------------------------------------------------------------
echo Acc_Account_Ledger::HtmlTableHeader();
echo '