From 9c04cb25db7d61e7065aeb12b1dfcc03c872d76c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 26 Aug 2012 15:51:28 +0200 Subject: [PATCH] Qual: Removed not used files. --- htdocs/compta/prelevement/facturesrejets.php | 163 ------------------- htdocs/fichinter/rapport.php | 146 ----------------- 2 files changed, 309 deletions(-) delete mode 100644 htdocs/compta/prelevement/facturesrejets.php delete mode 100644 htdocs/fichinter/rapport.php diff --git a/htdocs/compta/prelevement/facturesrejets.php b/htdocs/compta/prelevement/facturesrejets.php deleted file mode 100644 index 700cf00dec5..00000000000 --- a/htdocs/compta/prelevement/facturesrejets.php +++ /dev/null @@ -1,163 +0,0 @@ - - * Copyright (C) 2005-2009 Regis Houssin - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -/** - * \file htdocs/compta/prelevement/facturesrejets.php - * \ingroup prelevement - * \brief Invoice reject - */ - -require '../bank/pre.inc.php'; -require_once DOL_DOCUMENT_ROOT.'/compta/prelevement/class/rejetprelevement.class.php'; -require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php'; - -$langs->load("categories"); - -// Security check -if ($user->societe_id > 0) accessforbidden(); - - -/* - * View - */ -llxHeader('',$langs->trans("WithdrawalReceipt")); - -$h = 0; -$head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/fiche.php?id='.$_GET["id"]; -$head[$h][1] = $langs->trans("Fiche"); -$h++; - -$head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/factures.php?id='.$_GET["id"]; -$head[$h][1] = $langs->trans("Factures"); -$h++; - -$head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/rejets.php?id='.$_GET["id"]; -$head[$h][1] = $langs->trans("Rejets"); -$hselected = $h; -$h++; - - -$head[$h][0] = DOL_URL_ROOT.'/compta/prelevement/fiche-stat.php?id='.$_GET["id"]; -$head[$h][1] = $langs->trans("Statistiques"); -$h++; - -$prev_id = $_GET["id"]; - -$page = $_GET["page"]; -$sortorder = $_GET["sortorder"]; -$sortfield = $_GET["sortfield"]; - -if ($page == -1) { $page = 0 ; } - -$offset = $conf->liste_limit * $page ; -$pageprev = $page - 1; -$pagenext = $page + 1; - -if ($sortorder == "") { - $sortorder="DESC"; -} -if ($sortfield == "") { - $sortfield="p.datec"; -} - -/* - * Liste des factures - * - * - */ -$sql = "SELECT p.rowid, pf.statut, p.ref"; -$sql.= " ,f.rowid as facid, f.facnumber, f.total_ttc"; -$sql.= " , s.rowid as socid, s.nom"; -$sql.= " FROM ".MAIN_DB_PREFIX."prelevement as p"; -$sql.= " , ".MAIN_DB_PREFIX."prelevement_facture as pf"; -$sql.= " , ".MAIN_DB_PREFIX."facture as f"; -$sql.= " , ".MAIN_DB_PREFIX."societe as s"; -$sql.= " WHERE pf.fk_prelevement = p.rowid"; -$sql.= " AND f.fk_soc = s.rowid"; -$sql.= " AND pf.fk_facture = f.rowid"; -$sql.= " AND pf.statut = 2 "; -$sql.= " AND f.entity = ".$conf->entity; -if ($_GET["socid"]) $sql.= " AND s.rowid = ".$_GET["socid"]; -$sql.= " ORDER BY $sortfield $sortorder "; -$sql.= $db->plimit($conf->liste_limit+1, $offset); - -$result = $db->query($sql); -if ($result) -{ - $num = $db->num_rows($result); - $i = 0; - - print_barre_liste("Pr�l�vements rejet�s", $page, "rejets.php", $urladd, $sortfield, $sortorder, '', $num); - print"\n\n"; - print ''; - print ''; - print_liste_field_titre("Bon N�","rejets.php","p.ref",'',$urladd); - print_liste_field_titre($langs->trans("Invoice"),"rejets.php","p.facnumber",'',$urladd); - print_liste_field_titre($langs->trans("ThirdParty"),"rejets.php","s.nom",'',$urladd); - print_liste_field_titre($langs->trans("Amount"),"rejets.php","f.total_ttc","",$urladd,'align="center"'); - print ''; - - $var=True; - - $total = 0; - - while ($i < min($num,$conf->liste_limit)) - { - $obj = $db->fetch_object($result); - - print "\n"; - - print "\n"; - - - print '\n"; - - print '\n"; - - print ''; - - print "\n"; - - $total += $obj->total_ttc; - $var=!$var; - $i++; - } - - print "
 
"; - - print ''.$obj->ref.""; - - print ''; - print img_picto('','file'); - print ' '; - - print ''.$obj->facnumber."'.stripslashes($obj->nom)."'.price($obj->total_ttc)."Rejet�'; - - print '
"; - $db->free($result); -} -else -{ - dol_print_error($db); -} - -$db->close(); - -llxFooter(); -?> diff --git a/htdocs/fichinter/rapport.php b/htdocs/fichinter/rapport.php deleted file mode 100644 index 88f5eedd2f8..00000000000 --- a/htdocs/fichinter/rapport.php +++ /dev/null @@ -1,146 +0,0 @@ - - * Copyright (C) 2004-2010 Laurent Destailleur - * Copyright (C) 2005-2009 Regis Houssin - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -require '../main.inc.php'; -require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php'; - -$langs->load("interventions"); - -$socid=GETPOST('socid', 'int'); - -// Security check -if (! empty($user->societe_id)) $socid=$user->societe_id; -$result = restrictedArea($user, 'ficheinter', '', 'fichinter'); - -$sortfield = GETPOST('sortfield','alpha'); -$sortorder = GETPOST('sortorder','alpha'); -$page = GETPOST('page','int'); -if ($page == -1) { - $page = 0; -} -$offset = $conf->liste_limit * $page; -$pageprev = $page - 1; -$pagenext = $page + 1; -if (! $sortorder) $sortorder="ASC"; -if (! $sortfield) $sortfield="f.datei"; - - -/* - * View - */ - -llxHeader(); - -$now=dol_now(); - -$sql = "SELECT s.nom, s.rowid as socid, f.description, f.ref"; -$sql.= ", f.datei as dp, f.rowid as fichid, f.fk_statut, f.duree"; -$sql.= " FROM ".MAIN_DB_PREFIX."societe as s"; -$sql.= ", ".MAIN_DB_PREFIX."fichinter as f "; -$sql.= " WHERE f.fk_soc = s.rowid"; -$sql.= " AND f.entity = ".$conf->entity; -if (! empty($socid)) - $sql .= " AND s.rowid = " . $socid; - - -if (empty($MM)) - $MM=strftime("%m", $now); -if (empty($YY)) - $YY=strftime("%Y", $now); - -echo "
"; -echo '
'; -echo ''; -echo ""; -echo $langs->trans("Month")." "; -echo " Année "; -echo ""; -echo ""; -echo "
"; - -$start="$YY-$MM-01 00:00:00"; -if ($MM ==12) -{ - $y = $YY+1; - $end="$y-01-01 00:00:00"; -} -else -{ - $m = $MM+1; - $end="$YY-$m-01 00:00:00"; -} -$sql .= " AND datei >= '".$start."' AND datei < '".$end."'" ; - -$sql .= " ORDER BY $sortfield $sortorder "; - -$resql=$db->query($sql); -if ($resql) -{ - $num = $db->num_rows($resql); - $title = $langs->trans("Report")." ".dol_print_date(strtotime($start),"%B %Y"); - print_barre_liste($title, $page, "rapport.php","&socid=".$socid,$sortfield,$sortorder,'',$num); - - $i = 0; - print ''; - print ''; - print ''; - if (empty($socid)) - print ''; - print ''; - - print ''; - print ''; - print "\n"; - $var=True; - $DureeTotal = 0; - while ($i < $num) - { - $objp = $db->fetch_object($resql); - $var=!$var; - print ""; - print '\n'; - - if (empty($socid)) - { - if (!empty($MM)) $filter='&MM='.$MM.'&YY='.$YY; - print ''."\n"; - } - print ''; - print "\n"; - print ''; - $DureeTotal += $objp->duree; - print "\n"; - - $i++; - } - print "
Num'.$langs->trans("Customers").''.$langs->trans("Description").'Date'.$langs->trans("Duration").'
'.$objp->ref.' '; - print ''.$objp->nom.''.nl2br($objp->description).'".dol_print_date($db->jdate($objp->dp),"day")."'.sprintf("%.1f",$objp->duree).'
"; - $db->free($resql); - print "
".$langs->trans("Total")." $DureeTotal jour[s]"; -} -else -{ - dol_print_error($db); -} - - -llxFooter(); -$db->close(); -?>