noalyss Version-9
acc_ledger_history_financial_oneline.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * PhpCompta is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with PhpCompta; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19// Copyright (2018) Author Dany De Bontridder <dany@alchimerys.be>
20
21if (!defined('ALLOWED'))
22 die('Appel direct ne sont pas permis');
23
24/**
25 * @file
26 * @brief display Financial operation , simple and detailled
27 */
28
29echo \HtmlInput::filter_table("tb_print_ledger", "0,1,2,3,4,5,6,7,8,9", 1);
30?>
31<table class="result" id="tb_print_ledger">
32 <tr>
33 <th><?= _('Date') ?></th>
34 <th><?= _('Banque') ?></th>
35 <th><?= _("Interne") ?></th>
36 <th><?=_('Pièce')?></th>
37 <th><?= _("Tiers") ?></th>
38 <th><?= _("Libellé") ?></th>
39 <th class="num"><?= _("Montant") ?></th>
40 <th class="num"><?= _("M. Devise") ?></th>
41 <th><?= _("Devise") ?></th>
42 <th><?= _("Opérations rapprochées") ?></th>
43 </tr>
44 <?php
45 $nb_data=count($this->data);
47 for ($i=0; $i<$nb_data; $i++):
48 $class=($i%2==0)?' class="even" ':' class="odd" ';
49 ?>
50 <tr <?= $class ?> >
51 <td>
52 <?=$this->data[$i]['str_date']?>
53 </td>
54 <td>
55 <?= $this->data[$i]['bk_qcode']; ?>
56 </td>
57 <td>
58 <?php
59 echo HtmlInput::detail_op($this->data[$i]['jr_id'], $this->data[$i]['jr_internal']);
60 ?>
61 </td>
62 <td>
63 <?= $this->data[$i]['jr_pj_number']; ?>
64 </td>
65 <td>
66 <?php
67 echo HtmlInput::history_card($this->data[$i]['tiers_f_id'],
68 h($this->data[$i]['tiers_first_name'].$this->data[$i]['tiers_name']."[{$this->data[$i]['tiers_qcode']}]"));
69 ?>
70 </td>
71 <td>
72 <?= h($this->data[$i]['jr_comment']) ?>
73 </td>
74 <td class="num">
75 <?= nbm($this->data[$i]['qf_amount']) ?>
76 </td>
77 <td class="num">
78 <?=nbm($this->data[$i]['oc_amount'])?>
79 </td>
80 <td>
81 <?=$this->data[$i]['cr_code_iso']?>
82 </td>
83 <td>
84 <?php
85 $ret_reconcile=$this->db->execute('reconcile_date',
86 array($this->data[$i]['jr_id']));
88 if ($max>0)
89 {
90 $sep="";
91 for ($e=0; $e<$max; $e++)
92 {
94 echo $sep.HtmlInput::detail_op($row['jr_id'],
95 $row['jr_date'].' '.$row['jr_internal']);
96 $sep=' ,';
97 }
98 }
99 ?>
100 </td>
101
102 <?php
104?>
105</table>
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
tr($p_string, $p_extra='')
Definition: ac_common.php:88
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
nbm($p_number, $p_dec=2)
format the number with a sep.
Definition: ac_common.php:137
h( $row[ 'oa_description'])
$class
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static num_row($ret)
wrapper for the function pg_num_rows
static detail_op($p_jr_id, $p_mesg)
return a string containing the html code for calling the modifyOperation
static history_card($f_id, $p_mesg, $p_style="", $p_exercice="")
display a div with the history of the card
$all table
$SecUser db