noalyss Version-9
predf_ledger_detail.php
Go to the documentation of this file.
1<?php
2//This file is part of NOALYSS and is under GPL
3//see licence.txt
4?><fieldset>
5<legend><?php echo $f_legend ?>
6</legend>
7<?php echo $f_type?><?php echo $f_client_qcode?><?php echo $f_client_bt?> <?php echo $f_client?><br>
8<?php echo $str_add_button?>
9</fieldset>
10
11<div class="fieldset" style="overflow:auto;height:400px">
12<h1 class="fiedset"><?php echo $f_legend_detail?></h1>
13
14<table id="sold_item" width="100%" border="0">
15<tr>
16<th style="width:auto"colspan="2">Code <?php echo Icon_Action::infobulle(0)?></th>
17 <th><?php echo _('Dénomination')?></th>
18<?php if ($flag_tva =='Y') : ?>
19 <th><?php echo _('prix/unité htva')?><?php echo Icon_Action::infobulle(6)?></th>
20 <th><?php echo _('quantité')?></th>
21 <th><?php echo _('Total HTVA')?></th>
22 <th><?php echo _('tva')?></th>
23 <th><?php echo _('tot.tva')?></th>
24 <th><?php echo _('tvac')?></th>
25<?php else: ?>
26 <th><?php echo _('prix/unité ')?><?php echo Icon_Action::infobulle(6)?></th>
27 <th><?php echo _('quantité')?></th>
28 <th><?php echo _('Total ')?></th>
29<?php endif;?>
30
31
32
33</tr>
34<?php foreach ($array as $item) {
35echo '<tr>';
36echo $item['quick_code'];
37echo '<td>'.$item['bt'].'</td>';
38?>
39<td style="border-bottom: 1px dotted grey;"><?php echo $item['denom'] ?></td>
40<?php
41echo td($item['pu']);
42echo td($item['quantity' ]);
43echo td($item['htva']);
44if ($flag_tva=='Y') {
45 echo td($item['tva']);
46 echo td($item['amount_tva'].$item['hidden']);
47
48}
49echo td($item['tvac']);
50echo '</tr>';
51}
52
53?>
54</table>
55
56</div>
57
58<div style="position:float;float:right;text-align:right;padding-right:5px;font-size:1.2em;font-weight:bold;color:blue">
59 <?php echo HtmlInput::button('act',_('Actualiser'),'onClick="compute_all_ledger();"'); ?>
60 </div>
61
62 <div style="position:float;float:right;text-align:left;font-size:1.2em;font-weight:bold;color:blue" id="sum">
63 <br><span id="htva">0.0</span>
64<?php
65 if ( $flag_tva=='Y' ) : ?>
66 <br><span id="tva">0.0</span>
67 <br><span id="tvac">0.0</span>
68<?php endif; ?>
69
70 </div>
71
72<div style="position:float;float:right;text-align:right;padding-right:5px;font-size:1.2em;font-weight:bold;color:blue">
73<?php
74 if ( $flag_tva =='Y') :
75 ?>
76 <br><?php echo _('Total HTVA')?>
77 <br><?php echo _('Total TVA')?>
78 <br><?php echo _('Total TVAC')?>
79 <?php else: ?>
80 <br><?php echo _('Total')?>
81<?php endif; ?>
82</div>
83
84
85
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
span($p_string, $p_extra='')
Definition: ac_common.php:43
h1($p_string, $p_class="")
Definition: ac_common.php:72
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
$opd_description style
static button($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
static infobulle($p_comment)
Display a info in a bubble, text is in message_javascript.
$all table
$desc width