From 69a32c0aaa47361b3841e3fba8cb1c73b6fe05b3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 16 May 2003 10:02:50 +0000 Subject: [PATCH] *** empty log message *** --- htdocs/compta/tva/pre.inc.php3 | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/htdocs/compta/tva/pre.inc.php3 b/htdocs/compta/tva/pre.inc.php3 index 676364e4b96..922cac2ef31 100644 --- a/htdocs/compta/tva/pre.inc.php3 +++ b/htdocs/compta/tva/pre.inc.php3 @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2003 Rodolphe Quiedeville * * 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 @@ -33,24 +33,21 @@ function llxHeader($head = "") { $menu = new Menu(); - $menu->add("/compta/facture.php3","Factures"); - $menu->add("../ca.php3","Chiffres d'affaires"); $menu->add("index.php3","TVA"); /* - * A automatiser + * Liste les 2 dernières années * */ - $menu->add_submenu("index.php3?year=2002","2002"); - $menu->add_submenu("index.php3?year=2001","2001"); + $yc = strftime("%Y",time()); + + $menu->add_submenu("index.php3?year=".$yc-1,$yc-1); + $menu->add_submenu("index.php3?year=".$yc-2,$yc-2); $menu->add("reglement.php","Reglement"); - $menu->add("/compta/bank/index.php3","Bank"); - left_menu($menu->liste); - } ?>