Trad: Traduction du module compta par dfaut

This commit is contained in:
Laurent Destailleur 2006-05-20 10:50:47 +00:00
parent e472fc79ed
commit 10c798c105
10 changed files with 80 additions and 53 deletions

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
@ -18,54 +18,67 @@
*
* $Id$
* $Source$
*
*/
/*!
\file htdocs/compta/export/index.php
\ingroup compta
\brief Page accueil zone export compta
\version $Revision$
/**
\file htdocs/compta/export/index.php
\ingroup compta
\brief Page export ventilations
\version $Revision$
*/
require("./pre.inc.php");
require_once("./ComptaJournalPaiement.class.php");
require_once("./ComptaJournalVente.class.php");
require("./ComptaJournalPaiement.class.php");
require("./ComptaJournalVente.class.php");
/*
* Actions
*/
if ($_GET["action"] == 'export')
{
include_once DOL_DOCUMENT_ROOT.'/compta/export/modules/compta.export.class.php';
$exc = new ComptaExport($db, $user, 'Poivre');
if($_GET["id"] > 0)
{
$exc->Export($_GET["id"]);
}
else
{
$exc->Export();
}
print $exc->error_message;
/* Génération du journal des Paiements */
$jp= new ComptaJournalPaiement($db);
$jp->GeneratePdf($user, $exc->id, $exc->ref);
/* Génération du journal des Ventes */
$jp= new ComptaJournalVente($db);
$jp->GeneratePdf($user, $exc->id, $exc->ref);
$modulename='Poivre';
include_once DOL_DOCUMENT_ROOT.'/compta/export/modules/compta.export.class.php';
$exc = new ComptaExport($db, $user, $modulename);
if($_GET["id"] > 0)
{
$exc->Export($_GET["id"]);
}
else
{
$exc->Export();
}
/* Génération du journal des Paiements */
$jp= new ComptaJournalPaiement($db);
$jp->GeneratePdf($user, $exc->id, $exc->ref);
/* Génération du journal des Ventes */
$jp= new ComptaJournalVente($db);
$jp->GeneratePdf($user, $exc->id, $exc->ref);
}
/*
* Affichage page
*/
llxHeader('','Compta - Export');
print_titre("Export Comptable");
print '<table border="0" width="100%" cellspacing="4">';
if ($exc->error_message);
{
print $exc->error_message;
}
print '<table class="notopnoleftnoright" width="100%">';
print '<tr><td valign="top" width="30%">';
$sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."facturedet";

View File

@ -55,7 +55,7 @@ function llxHeader($head = "", $title="", $help_url='')
$menu->add(DOL_URL_ROOT."/compta/export/",$langs->trans("Export"));
$menu->add_submenu(DOL_URL_ROOT."/compta/export/index.php?action=export","Nouvel Export");
$menu->add_submenu(DOL_URL_ROOT."/compta/export/index.php?action=export",$langs->trans("New"));
$menu->add_submenu(DOL_URL_ROOT."/compta/export/liste.php",$langs->trans("List"));

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
@ -18,7 +18,6 @@
*
* $Id$
* $Source$
*
*/
/** \file htdocs/compta/param/pre.inc.php
@ -41,9 +40,9 @@ function llxHeader($head = "", $title="", $help_url='')
$menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
$menu->add(DOL_URL_ROOT."/compta/param/comptes/","Comptes généraux");
$menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/liste.php","Liste");
$menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/fiche.php?action=create","Nouveau");
$menu->add(DOL_URL_ROOT."/compta/param/comptes/",$langs->trans("AccountsGeneral"));
$menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/liste.php",$langs->trans("List"));
$menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/fiche.php?action=create",$langs->trans("New"));
left_menu($menu->liste, $help_url);
}

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
@ -18,7 +18,6 @@
*
* $Id$
* $Source$
*
*/
/**
@ -39,7 +38,7 @@ function llxHeader($head = "", $title="", $help_url='')
$menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
$menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/liste.php","Comptes généraux");
$menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/liste.php",$langs->trans("AccountsGeneral"));
left_menu($menu->liste, $help_url);
}

View File

@ -299,6 +299,7 @@ class MenuLeft {
$newmenu->add_submenu(DOL_URL_ROOT."/contact/index.php?leftmenu=customers&type=c", $langs->trans("Contacts"),1,$user->rights->societe->lire);
}
// Factures
if ($conf->facture->enabled)
{
$langs->load("bills");
@ -372,8 +373,12 @@ class MenuLeft {
{
$newmenu->add(DOL_URL_ROOT."/compta/ventilation/index.php?leftmenu=ventil",$langs->trans("Ventilation"),0,$user->rights->compta->ventilation->lire);
if ($leftmenu=="ventil") $newmenu->add(DOL_URL_ROOT."/compta/ventilation/liste.php",$langs->trans("A ventiler"),1,$user->rights->compta->ventilation->lire);
if ($leftmenu=="ventil") $newmenu->add(DOL_URL_ROOT."/compta/ventilation/lignes.php",$langs->trans("Ventilées"),1,$user->rights->compta->ventilation->lire);
if ($leftmenu=="ventil") $newmenu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Setup"),1,$user->rights->compta->ventilation->parametrer);
if ($leftmenu=="ventil") $newmenu->add_submenu(DOL_URL_ROOT."/compta/ventilation/lignes.php",$langs->trans("Ventilées"),1,$user->rights->compta->ventilation->lire);
if ($leftmenu=="ventil") $newmenu->add_submenu(DOL_URL_ROOT."/compta/param/",$langs->trans("Setup"),1,$user->rights->compta->ventilation->parametrer);
if ($leftmenu=="ventil") $newmenu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/liste.php",$langs->trans("List"),2,$user->rights->compta->ventilation->parametrer);
if ($leftmenu=="ventil") $newmenu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/fiche.php?action=create",$langs->trans("New"),2,$user->rights->compta->ventilation->parametrer);
if ($leftmenu=="ventil") $newmenu->add(DOL_URL_ROOT."/compta/export/",$langs->trans("Export"),1,$user->rights->compta->ventilation->lire);
}
// Compta expert

View File

@ -253,7 +253,7 @@ class MenuLeft {
/*
* Menu COMPTA
* Menu Financial
*/
if ($mainmenu == 'accountancy')
{
@ -309,6 +309,7 @@ class MenuLeft {
$newmenu->add_submenu(DOL_URL_ROOT."/contact/index.php?leftmenu=customers&type=c", $langs->trans("Contacts"),1,$user->rights->societe->lire);
}
// Factures
if ($conf->facture->enabled)
{
$langs->load("bills");

View File

@ -178,8 +178,9 @@ class MenuTop {
}
// Compta
if ($conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled || $conf->caisse->enabled)
// Financial
if ($conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled || $conf->caisse->enabled
|| $conf->commande->enabled || $conf->facture->enabled)
{
$langs->load("compta");
@ -193,7 +194,7 @@ class MenuTop {
$class = 'class="tmenu"';
}
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/compta/index.php?mainmenu=accountancy&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Accountancy")."/".$langs->trans("Treasury").'</a></td>';
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/compta/index.php?mainmenu=accountancy&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuFinancial").'</a></td>';
}
// Projets

View File

@ -176,8 +176,9 @@ class MenuTop {
}
// Compta
if ($conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled || $conf->caisse->enabled)
// Financial
if ($conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled || $conf->caisse->enabled
|| $conf->commande->enabled || $conf->facture->enabled)
{
$langs->load("compta");
@ -191,7 +192,7 @@ class MenuTop {
$class = 'class="tmenu"';
}
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/compta/index.php?mainmenu=accountancy&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Accountancy")."/".$langs->trans("Treasury").'</a></td>';
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/compta/index.php?mainmenu=accountancy&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuFinancial").'</a></td>';
}
// Projets

View File

@ -2,6 +2,7 @@
Accountancy=Accountancy
AccountancyCard=Accountancy card
Treasury=Treasury
MenuFinancial=Financial
OptionMode=Option for accountancy
OptionModeTrue=Option Recettes-Dépenses
OptionModeVirtual=Option Créances-Dettes
@ -9,6 +10,9 @@ OptionModeTrueDesc=Dans ce mode, le CA est calcul
OptionModeVirtualDesc=Dans ce mode, le CA est calculé sur la base des factures validées. Qu'elles soient ou non payés, dès lors qu'elles sont dues, elles apparaissent dans le résultat.
FeatureIsSupportedInInOutModeOnly=Feature only available in IN-OUT accountancy mode (See Accountancy module configuration)
Param=Setup
AccountsGeneral=Accounts
Account=Account
Accounts=Accounts
BillsForSuppliers=Bills for suppliers
Income=Income
Outcome=Outcome

View File

@ -2,6 +2,7 @@
Accountancy=Compta
AccountancyCard=Fiche Compta
Treasury=Tréso
MenuFinancial=Compta/Tréso
OptionMode=Option de tenue de comptabilité
OptionModeTrue=Option Recettes-Dépenses
OptionModeVirtual=Option Créances-Dettes
@ -9,6 +10,9 @@ OptionModeTrueDesc=Dans ce mode, le CA est calcul
OptionModeVirtualDesc=Dans ce mode, le CA est calculé sur la base des factures validées. Payées ou non, elles apparaissent dans le résultat dès qu'elles sont dues.
FeatureIsSupportedInInOutModeOnly=Fonction disponible uniquement en mode compta RECETTE-DEPENSE (Voir configuration du module compta)
Param=Paramétrage
AccountsGeneral=Comptes généraux
Account=Compte
Accounts=Comptes
BillsForSuppliers=Factures des fournisseurs
Income=Recettes
Outcome=Dépenses