noalyss  Version-9
operation_detail_fin.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of NOALYSS.
5  *
6  * NOALYSS is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * NOALYSS is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with NOALYSS; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 /* $Revision$ */
21 
22 // Copyright Author Dany De Bontridder danydb@aevalys.eu
23 
24 /**
25  * @file
26  * @brief show detail of a operation of fin
27  *
28  */
29 echo '<table class="result">';
30 echo '<tr>';
31 echo th(_('Compte en banque'));
32 echo th(_('Tiers'));
33 echo th(_('LibellĂ©'));
34 echo th(_('Montant'));
35 echo '</tr>';
36 
37 echo '<tr>';
38 $bk = new Fiche($cn, $obj->det->array[0]['qf_bank']);
39 $view_card_detail = HtmlInput::card_detail($bk->get_quick_code(), h($bk->getName()), ' class="line" ');
40 echo td($view_card_detail);
41 $other = new Fiche($cn, $obj->det->array[0]['qf_other']);
42 $view_card_detail = HtmlInput::card_detail($other->get_quick_code(), h($other->getName()), ' class="line" ');
43 echo td($view_card_detail);
44 $comment = strip_tags($obj->det->jr_comment);
45 echo td($comment);
46 echo td(nbm($obj->det->array[0]['qf_amount']), ' class="inum"');
47 echo '</tr>';
48 echo '</table>';
49 ?>
50 
nbm
nbm($p_number, $p_dec=2)
format the number with a sep.
Definition: ac_common.php:137
h
h( $row[ 'oa_description'])
Definition: ajax_anc_detail_operation.php:46
$bk
$bk
Definition: operation_detail_fin.php:38
$comment
$comment
Definition: operation_detail_fin.php:44
Fiche
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
Definition: fiche.class.php:37
$obj
$obj
Definition: ajax_accounting.php:43
$view_card_detail
$view_card_detail
Definition: operation_detail_fin.php:39
$cn
$cn
Definition: ajax_anc_accounting.php:30
$other
$other
Definition: operation_detail_fin.php:41
th
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
td
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
HtmlInput\card_detail
static card_detail($p_qcode, $pname='', $p_style="", $p_nohistory=false)
show the detail of a card
Definition: html_input.class.php:565