noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
last_operation-display.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS 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 NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18*/
19// Copyright Author Dany De Bontridder danydb@aevalys.eu 11/08/24
20/*!
21 * \file
22 * \brief
23 */
24?>
25<table class="result">
26 <?php
27 $Ledger = new \Acc_Ledger($cn, 0);
28 $last_ledger = array();
29 $last_ledger = $Ledger->get_last(20);
30
31 for ($i = 0; $i < count($last_ledger); $i++):
32 $class = ($i % 2 == 0) ? ' class="even" ' : ' class="odd" ';
33 ?>
35 <td class="box">
36 <?php echo \smaller_date($last_ledger[$i]['jr_date_fmt']) ?>
37 </td>
38 <td class="box">
39 <?php echo $last_ledger[$i]['jr_pj_number'] ?>
40
41 </td>
42 <td class="box">
43 <?php echo h(mb_substr($last_ledger[$i]['jr_comment'] ?? "", 0, 40, 'UTF-8')) ?>
44 </td>
45 <td class="box">
46 <?php echo \HtmlInput::detail_op($last_ledger[$i]['jr_id'], $last_ledger[$i]['jr_internal']) ?>
47 </td>
48 <td class="num box">
49 <?php echo nbm($last_ledger[$i]['jr_montant']) ?>
50 </td>
51
52 </tr>
53 <?php endfor; ?>
54</table>
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.
h( $row[ 'oa_description'])
foreach(array( 'l', 'gDossier') as $a) if(is_numeric($l)==false) $Ledger
$all table