diff --git a/htdocs/compta/ventilation/index.php b/htdocs/compta/ventilation/index.php index a569a62a6ae..d9e7ed4cc3d 100644 --- a/htdocs/compta/ventilation/index.php +++ b/htdocs/compta/ventilation/index.php @@ -30,76 +30,7 @@ require("./pre.inc.php"); -$user->getrights('banque'); +Header("Location: liste.php"); -$langs->load("compta"); - -/* - * Sécurité accés client - */ -if ($user->societe_id > 0) -{ - $action = ''; - $socidp = $user->societe_id; -} - -llxHeader("","Accueil Compta"); - - -/* - * Actions - */ - -if ($action == 'add_bookmark') -{ - $sql = "DELETE FROM ".MAIN_DB_PREFIX."bookmark WHERE fk_soc = ".$socidp." AND fk_user=".$user->id; - if (! $db->query($sql) ) - { - dolibarr_print_error($db); - } - $sql = "INSERT INTO ".MAIN_DB_PREFIX."bookmark (fk_soc, dateb, fk_user) VALUES ($socidp, now(),".$user->id.");"; - if (! $db->query($sql) ) - { - dolibarr_print_error($db); - } -} - -if ($action == 'del_bookmark') -{ - $sql = "DELETE FROM ".MAIN_DB_PREFIX."bookmark WHERE rowid=$bid"; - $result = $db->query($sql); -} - - - -/* - * Affichage page - * - */ -print_titre("Espace ventilation"); - -print '
| ';
-
-/*
- * Zone recherche facture
- */
-print ' "; - -print ' | '; - -print ' |
| Facture | "; print ''.$langs->trans("Description").' | '; - print ''.$langs->trans("VAT").' | '; + print ''; print " | '.$objp->facnumber.' | '; - - print ''.stripslashes(nl2br($objp->description)).' | '; - + print ''.stripslashes(nl2br($objp->description)).' | '; print ''; print img_edit(); print ' | '; - print ""; $i++; } diff --git a/htdocs/compta/ventilation/pre.inc.php b/htdocs/compta/ventilation/pre.inc.php index 757b5377e87..5091418f73e 100644 --- a/htdocs/compta/ventilation/pre.inc.php +++ b/htdocs/compta/ventilation/pre.inc.php @@ -91,6 +91,7 @@ function llxHeader($head = "", $title="", $help_url='') $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation")); $menu->add_submenu(DOL_URL_ROOT."/compta/ventilation/liste.php",$langs->trans("A ventiler")); + $menu->add_submenu(DOL_URL_ROOT."/compta/ventilation/lignes.php",$langs->trans("Ventilées")); if ($user->rights->compta->ventilation->param) $menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));