noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
predf_ledger_detail.php
Go to the documentation of this file.
00001 <?php
00002 //This file is part of NOALYSS and is under GPL 
00003 //see licence.txt
00004 ?><fieldset>
00005 <legend><?php echo $f_legend ?>
00006 </legend>
00007 <?php echo $f_type?><?php echo $f_client_qcode?><?php echo $f_client_bt?> <?php echo $f_client?><br>
00008 <input type="hidden" id="p_jrn" name="p_jrn" value="<?php echo $this->jrn_def_id; ?>">    
00009 <?php echo $str_add_button?>
00010 </fieldset>
00011 
00012 <fieldset>
00013 <legend><?php echo $f_legend_detail?></legend>
00014 <table id="sold_item" width="100%" border="0">
00015 <tr>
00016 <th style="width:auto"colspan="2">Code <?php echo HtmlInput::infobulle(0)?></th>
00017       <th><?php echo _('Dénomination')?></th>
00018 <?php if ($flag_tva =='Y') : ?>
00019       <th><?php echo _('prix/unité htva')?><?php echo HtmlInput::infobulle(6)?></th>
00020       <th><?php echo _('quantité')?></th>
00021       <th><?php echo _('Total HTVA')?></th>
00022           <th><?php echo _('tva')?></th>
00023       <th><?php echo _('tot.tva')?></th>
00024       <th><?php echo _('tvac')?></th>
00025 <?php else: ?>
00026           <th><?php echo _('prix/unité ')?><?php echo HtmlInput::infobulle(6)?></th>
00027       <th><?php echo _('quantité')?></th>
00028       <th><?php echo _('Total ')?></th>
00029 <?php endif;?>
00030 
00031 
00032 
00033 </tr>
00034 <?php foreach ($array as $item) {
00035 echo '<tr>';
00036 echo $item['quick_code'];
00037 echo '<td>'.$item['bt'].'</td>';
00038 ?>
00039 <td style="border-bottom: 1px dotted grey; width: 75%;"><?php echo $item['denom'] ?></td>
00040 <?php 
00041 echo td($item['pu']);
00042 echo td($item['quantity' ]);
00043 echo td($item['htva']);
00044 if ($flag_tva=='Y')  {
00045         echo td($item['tva']);
00046         echo td($item['amount_tva'].$item['hidden']);
00047 
00048 }
00049 echo td($item['tvac']);
00050 echo '</tr>';
00051 }
00052 
00053 ?>
00054 </table>
00055 
00056 <div style="position:float;float:right;text-align:right;padding-right:5px;font-size:1.2em;font-weight:bold;color:blue">
00057       <?php echo HtmlInput::button('act',_('Actualiser'),'onClick="compute_all_ledger();"'); ?>
00058  </div>
00059 
00060     <div style="position:float;float:right;text-align:left;font-size:1.2em;font-weight:bold;color:blue" id="sum">
00061     <br><span id="htva">0.0</span>
00062 <?php
00063     if ( $flag_tva=='Y' )  : ?>
00064      <br><span id="tva">0.0</span>
00065     <br><span id="tvac">0.0</span>
00066 <?php    endif;     ?>
00067 
00068  </div>
00069 
00070 <div style="position:float;float:right;text-align:right;padding-right:5px;font-size:1.2em;font-weight:bold;color:blue">
00071 <?php
00072         if ( $flag_tva =='Y') :
00073         ?>
00074   <br><?php echo _('Total HTVA')?>
00075   <br><?php echo _('Total TVA')?>
00076   <br><?php echo _('Total TVAC')?>
00077  <?php else:  ?>
00078      <br><?php echo _('Total')?>
00079 <?php endif; ?>
00080 </div>
00081 
00082 </fieldset>
00083 
00084 
 All Data Structures Namespaces Files Functions Variables Enumerations