[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> 4 * 5 * This program 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 * This program 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 this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * 19 * $Id: reglement.php,v 1.18 2005/09/01 20:28:28 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/compta/tva/reglement.php,v $ 21 */ 22 23 /** 24 \file htdocs/compta/tva/reglement.php 25 \brief Liste des règlements de TVA effectués 26 \version $Revision: 1.18 $ 27 */ 28 29 require ("./pre.inc.php"); 30 require ("../../tva.class.php"); 31 32 $langs->load("compta"); 33 $langs->load("compta"); 34 35 36 llxHeader(); 37 38 $tva = new Tva($db); 39 40 print_titre($langs->trans("VATPayments")); 41 42 $sql = "SELECT rowid, amount, label, ".$db->pdate("f.datev")." as dm"; 43 $sql .= " FROM ".MAIN_DB_PREFIX."tva as f "; 44 $sql .= " ORDER BY dm DESC"; 45 46 $result = $db->query($sql); 47 if ($result) 48 { 49 $num = $db->num_rows($result); 50 $i = 0; 51 $total = 0 ; 52 print '<br>'; 53 print '<table class="noborder" width="100%">'; 54 print '<tr class="liste_titre">'; 55 print '<td nowrap width="120">'.$langs->trans("Date").'</td>'; 56 print "<td>".$langs->trans("Label")."</td>"; 57 print "<td align=\"right\">".$langs->trans("Amount")."</td>"; 58 print "<td> </td>\n"; 59 print "</tr>\n"; 60 $var=1; 61 while ($i < $num) 62 { 63 $obj = $db->fetch_object($result); 64 $var=!$var; 65 print "<tr $bc[$var]>"; 66 print "<td>".dolibarr_print_date($obj->dm)."</td>\n"; 67 print "<td>".$obj->label."</td>\n"; 68 $total = $total + $obj->amount; 69 70 print "<td align=\"right\">".price($obj->amount)."</td><td> </td>"; 71 print "</tr>\n"; 72 73 $i++; 74 } 75 print '<tr class="liste_total"><td align="right" colspan="2">'.$langs->trans("Total").'</td>'; 76 print "<td align=\"right\"><b>".price($total)."</b></td><td> </td></tr>"; 77 78 print "</table>"; 79 $db->free($result); 80 } 81 else 82 { 83 dolibarr_print_error($db); 84 } 85 86 87 $db->close(); 88 89 llxFooter('$Date: 2005/09/01 20:28:28 $ - $Revision: 1.18 $'); 90 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |