Trad: Traduction module prélèvement
This commit is contained in:
parent
0ecccabc04
commit
af43c36f38
@ -1,5 +1,6 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -17,15 +18,25 @@
|
|||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
* $Source$
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdocs/compta/prelevement/bons.php
|
||||||
|
\brief Page liste des bons de prelevements
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
$langs->load("withdrawals");
|
||||||
|
|
||||||
$page = $_GET["page"];
|
$page = $_GET["page"];
|
||||||
$sortorder = $_GET["sortorder"];
|
$sortorder = $_GET["sortorder"];
|
||||||
$sortfield = $_GET["sortfield"];
|
$sortfield = $_GET["sortfield"];
|
||||||
|
|
||||||
|
|
||||||
llxHeader('','Prélèvements - Bons');
|
llxHeader('','Prélèvements - Bons');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
*/
|
*/
|
||||||
@ -35,26 +46,18 @@ if ($user->societe_id > 0)
|
|||||||
$socidp = $user->societe_id;
|
$socidp = $user->societe_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($sortorder == "") $sortorder="DESC";
|
|
||||||
if ($sortfield == "") $sortfield="p.datec";
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Recherche
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($page == -1) { $page = 0 ; }
|
if ($page == -1) { $page = 0 ; }
|
||||||
|
|
||||||
$offset = $conf->liste_limit * $page ;
|
$offset = $conf->liste_limit * $page ;
|
||||||
$pageprev = $page - 1;
|
$pageprev = $page - 1;
|
||||||
$pagenext = $page + 1;
|
$pagenext = $page + 1;
|
||||||
|
if (! $sortorder) $sortorder="DESC";
|
||||||
|
if (! $sortfield) $sortfield="p.datec";
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mode Liste
|
* Mode Liste
|
||||||
*
|
*
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
$sql = "SELECT p.rowid, p.ref, p.amount,".$db->pdate("p.datec")." as datec";
|
$sql = "SELECT p.rowid, p.ref, p.amount,".$db->pdate("p.datec")." as datec";
|
||||||
$sql .= ", p.statut";
|
$sql .= ", p.statut";
|
||||||
@ -70,22 +73,23 @@ if ($result)
|
|||||||
|
|
||||||
$urladd= "&statut=".$_GET["statut"];
|
$urladd= "&statut=".$_GET["statut"];
|
||||||
|
|
||||||
print_barre_liste("Bons de prélèvements", $page, "bons.php", $urladd, $sortfield, $sortorder, '', $num);
|
print_barre_liste($langs->trans("WithdrawalsReceipts"), $page, "bons.php", $urladd, $sortfield, $sortorder, '', $num);
|
||||||
|
|
||||||
print"\n<!-- debut table -->\n";
|
print"\n<!-- debut table -->\n";
|
||||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|
||||||
print_liste_field_titre("Bon","bons.php","p.ref");
|
print_liste_field_titre("Bon","bons.php","p.ref");
|
||||||
print_liste_field_titre("Date","bons.php","p.datec","","",'align="center"');
|
print_liste_field_titre($langs->trans("Date"),"bons.php","p.datec","","",'align="center"');
|
||||||
|
|
||||||
print '<td align="right">Montant</td>';
|
print '<td align="right">'.$langs->trans("Amount").'</td>';
|
||||||
|
|
||||||
print '</tr><tr class="liste_titre">';
|
print '</tr><tr class="liste_titre">';
|
||||||
|
|
||||||
print '<form action="bons.php" method="GET">';
|
print '<form action="bons.php" method="GET">';
|
||||||
print '<td><input type="text" name="search_ligne" value="'. $_GET["search_ligne"].'" size="10"></td>';
|
print '<td><input type="text" class="flat" name="search_ligne" value="'. $_GET["search_ligne"].'" size="10"></td>';
|
||||||
print '<td><input type="submit" class="button" value="'.$langs->trans("Search").'"></td>';
|
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
|
print '<td align="right"><input type="image" class="liste_titre" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/search.png" name="button_search" alt="'.$langs->trans("Search").'"></td>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
@ -113,10 +117,11 @@ if ($result)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $db->error() . ' ' . $sql;
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
llxFooter('$Date$ - $Revision$');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -19,16 +20,17 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/**
|
||||||
\file htdocs/compta/prelevement/index.php
|
\file htdocs/compta/prelevement/demandes.php
|
||||||
\brief Prelevement
|
\brief Page de la liste des demandes de prélèvements
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT."/includes/modules/modPrelevement.class.php";
|
require_once DOL_DOCUMENT_ROOT."/includes/modules/modPrelevement.class.php";
|
||||||
|
|
||||||
|
$langs->load("widthdrawals");
|
||||||
|
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
{
|
{
|
||||||
$socidp = $user->societe_id;
|
$socidp = $user->societe_id;
|
||||||
@ -45,13 +47,12 @@ $sortorder = $_GET["sortorder"];
|
|||||||
$sortfield = $_GET["sortfield"];
|
$sortfield = $_GET["sortfield"];
|
||||||
|
|
||||||
if ($page == -1) $page = 0 ;
|
if ($page == -1) $page = 0 ;
|
||||||
|
|
||||||
$offset = $conf->liste_limit * $page ;
|
$offset = $conf->liste_limit * $page ;
|
||||||
$pageprev = $page - 1;
|
$pageprev = $page - 1;
|
||||||
$pagenext = $page + 1;
|
$pagenext = $page + 1;
|
||||||
|
if (! $sortorder) $sortorder="DESC";
|
||||||
|
if (! $sortfield) $sortfield="f.facnumber";
|
||||||
|
|
||||||
if ($sortorder == "") $sortorder="DESC";
|
|
||||||
if ($sortfield == "") $sortfield="f.facnumber";
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Demandes en attente
|
* Demandes en attente
|
||||||
@ -91,10 +92,14 @@ if ( $db->query($sql) )
|
|||||||
print '<td>Emetteur</td></tr>';
|
print '<td>Emetteur</td></tr>';
|
||||||
|
|
||||||
print '<form action="demandes.php" method="GET">';
|
print '<form action="demandes.php" method="GET">';
|
||||||
print '<tr class="liste_titre"><td>-</td><td>';
|
|
||||||
print '<input type="text" name="search_societe" size="12" value="'.$GET["search_societe"].'"> ';
|
print '<tr class="liste_titre"><td>-</td>';
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Search").'"></td>';
|
print '<td>';
|
||||||
print '<td colspan="2"> </td></tr>';
|
print '<input type="text" class="flat" name="search_societe" size="12" value="'.$GET["search_societe"].'">';
|
||||||
|
print '</td>';
|
||||||
|
|
||||||
|
print '<td colspan="2" align="right"><input type="image" class="liste_titre" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/search.png" name="button_search" alt="'.$langs->trans("Search").'"></td></tr>';
|
||||||
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
$var = True;
|
$var = True;
|
||||||
@ -128,5 +133,6 @@ else
|
|||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
llxFooter();
|
|
||||||
|
llxFooter('$Date$ - $Revision$');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -21,23 +21,25 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/compta/prelevement/index.php
|
\file htdocs/compta/prelevement/index.php
|
||||||
\brief Prelevement
|
\brief Prelevement
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT."/includes/modules/modPrelevement.class.php";
|
require_once DOL_DOCUMENT_ROOT."/includes/modules/modPrelevement.class.php";
|
||||||
|
|
||||||
|
$langs->load("withdrawals");
|
||||||
|
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
{
|
{
|
||||||
$socidp = $user->societe_id;
|
$socidp = $user->societe_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
print_titre($langs->trans("StandingOrders"));
|
print_titre($langs->trans("StandingOrdersArea"));
|
||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
@ -62,7 +64,7 @@ if ($result)
|
|||||||
|
|
||||||
print"\n<!-- debut table -->\n";
|
print"\n<!-- debut table -->\n";
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td>Bon</td><td>Date</td>';
|
print '<tr class="liste_titre"><td>'.$langs->trans("Receipt").'</td><td>'.$langs->trans("Date").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Amount").'</td>';
|
print '<td align="right">'.$langs->trans("Amount").'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
@ -143,4 +145,5 @@ else
|
|||||||
print '</td></tr></table>';
|
print '</td></tr></table>';
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
7
htdocs/langs/en_US/withdrawals.lang
Executable file
7
htdocs/langs/en_US/withdrawals.lang
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
# Dolibarr language file - fr_FR - withdrawals
|
||||||
|
StandingOrdersArea=Standingd orders area
|
||||||
|
StandingOrders=Standing orders
|
||||||
|
StandingOrder=Standing orders
|
||||||
|
Withdrawals=Withdrawals
|
||||||
|
Withdrawal=Withdrawal
|
||||||
|
WithdrawalsReceipts=Withdrawals receipts
|
||||||
7
htdocs/langs/fr_FR/withdrawals.lang
Executable file
7
htdocs/langs/fr_FR/withdrawals.lang
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
# Dolibarr language file - fr_FR - withdrawals
|
||||||
|
StandingOrdersArea=Espace prélèvements
|
||||||
|
StandingOrders=Prélèvements
|
||||||
|
StandingOrder=Prélèvement
|
||||||
|
Withdrawals=Retraits
|
||||||
|
Withdrawal=Retrait
|
||||||
|
WithdrawalsReceipts=Bons de prélèvements
|
||||||
Loading…
Reference in New Issue
Block a user