noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
impress_reconciliation_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 ?><table class="result">
00005     <tr>
00006         <th>
00007             
00008         </th>
00009          <th style="text-align:right">
00010             <?php echo _("Prix HTVA")?>
00011         </th>
00012         <th style="text-align:right">
00013             <?php echo _("Non Deductible")?>
00014         </th>
00015         <th style="text-align:right" >
00016             <?php echo _("code tva")?>
00017         </th>
00018         <th style="text-align:right">
00019            <?php echo _("TVA")?>
00020         </th>
00021         <th style="text-align:right">
00022             <?php echo _("Tva ND")?>
00023         </th>
00024         <th style="text-align:right">
00025            <?php echo _("TVAC")?>
00026         </th>
00027     </tr>
00028 <?php 
00029 $nb_record=Database::num_row($p_ret);
00030 bcscale(2);
00031 $tot_cum_price=0;
00032 $tot_cum_vat=0;
00033 $tot_cum_nd=0;
00034 $tot_cum_nd_tva=0;
00035 $tot_cum_tvac=0;
00036 for ($i=0;$i < $nb_record;$i++)    :
00037     $row=Database::fetch_array($p_ret,$i);
00038     $tot_cum_price=bcadd($tot_cum_price,$row['price']);
00039     
00040     $tot_cum_vat=bcadd($tot_cum_vat,$row['vat_amount']);
00041     
00042 
00043 ?>    
00044 
00045     <tr>
00046         <td>
00047             
00048         </td>
00049         <td class="num">
00050           <?php  echo nbm($row['price']); ?>
00051         </td>
00052         <td class="num">
00053             <?php  $tot_price=bcadd($row['nd_amount'],$row['dep_priv']); 
00054             $tot_cum_nd=bcadd($tot_cum_nd,$tot_price);
00055             echo nbm($tot_price); ?>  
00056         </td>
00057         <td class="num">
00058           <?php  echo $row['tva_label']; ?>
00059         </td>
00060         <td class="num">
00061           <?php  echo nbm($row['vat_amount']); ?>
00062         </td>
00063         <td class="num">
00064           <?php  $tot_vat=bcadd($row['nd_tva'],$row['nd_tva_recup']); 
00065           $tot_cum_nd_tva=bcadd($tot_cum_nd_tva,$tot_vat);
00066           echo nbm($tot_vat); ?>  
00067         </td>
00068         <td class="num">
00069             <?php 
00070             $tot=bcadd($tot_vat,$row['price']);
00071             $tot=bcadd($tot,$row['vat_amount']);
00072             $tot_cum_tvac=bcadd($tot_cum_tvac,$tot);
00073             echo nbm($tot);
00074             ?>
00075         </td>    
00076     </tr>
00077 <?php
00078           endfor;
00079 ?>
00080     <tfoot>
00081     <td>
00082         Totaux
00083     </td>
00084     <td class="num">
00085         <?php echo nbm($tot_cum_price); ?>
00086     </td>
00087     <td class="num">
00088         <?php echo nbm($tot_cum_nd); ?>
00089     </td>
00090     <td>
00091         
00092     </td>
00093     <td class="num">
00094         <?php echo nbm($tot_cum_vat); ?>
00095     </td>
00096     <td class="num">
00097         <?php echo nbm($tot_cum_nd_tva); ?>
00098     </td>
00099     <td class="num">
00100         <?php 
00101         echo nbm($tot_cum_tvac); ?>
00102     </td>
00103     </tfoot>
00104 </table>        
 All Data Structures Namespaces Files Functions Variables Enumerations