Trad: Withdrawal module translation
This commit is contained in:
parent
67edbfa0d9
commit
3d2d9fddcb
@ -18,218 +18,218 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/compta/prelevement/config.php
|
||||
\ingroup prelevement
|
||||
\brief Page configuration des prelevements
|
||||
\version $Id$
|
||||
*/
|
||||
\file htdocs/compta/prelevement/config.php
|
||||
\ingroup prelevement
|
||||
\brief Page configuration des prelevements
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||
|
||||
|
||||
if (!$user->rights->prelevement->bons->lire)
|
||||
accessforbidden();
|
||||
accessforbidden();
|
||||
|
||||
|
||||
if ($_GET["action"] == "set" && $user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
for ($i = 1 ; $i < 7 ; $i++)
|
||||
{
|
||||
dolibarr_set_const($db, $_POST["nom$i"], $_POST["value$i"], $type='chaine');
|
||||
}
|
||||
for ($i = 1 ; $i < 7 ; $i++)
|
||||
{
|
||||
dolibarr_set_const($db, $_POST["nom$i"], $_POST["value$i"], $type='chaine');
|
||||
}
|
||||
|
||||
Header("Location: config.php");
|
||||
Header("Location: config.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($_GET["action"] == "addnotif" && $user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
$bon = new BonPrelevement($db);
|
||||
$bon->AddNotification($_POST["user"],$_POST["action"]);
|
||||
|
||||
Header("Location: config.php");
|
||||
$bon = new BonPrelevement($db);
|
||||
$bon->AddNotification($_POST["user"],$_POST["action"]);
|
||||
|
||||
Header("Location: config.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($_GET["action"] == "deletenotif" && $user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
$bon = new BonPrelevement($db);
|
||||
$bon->DeleteNotificationById($_GET["notif"]);
|
||||
|
||||
Header("Location: config.php");
|
||||
$bon = new BonPrelevement($db);
|
||||
$bon->DeleteNotificationById($_GET["notif"]);
|
||||
|
||||
Header("Location: config.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader('',$langs->trans("WithdrawalsSetup"));
|
||||
|
||||
print_fiche_titre($langs->trans("WithdrawalsSetup"));
|
||||
|
||||
print "<br>";
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
print '<form method="post" action="config.php?action=set">';
|
||||
print '<form method="post" action="config.php?action=set">';
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td width="30%">Nom</td>';
|
||||
print '<td width="30%">'.$langs->trans("Parameter").'</td>';
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
print '<td width="40%">Valeur</td>';
|
||||
print '<td width="40%">'.$langs->trans("Value").'</td>';
|
||||
|
||||
print '<td width="30%">Valeur Actuelle</td>';
|
||||
print '<td width="30%">'.$langs->trans("CurrentValue").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
print '<tr class="pair"><td>Num<EFBFBD>ro National Emetteur</td>';
|
||||
print '<tr class="pair"><td>'.$langs->trans("NumeroNationalEmetter").'</td>';
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom1" value="PRELEVEMENT_NUMERO_NATIONAL_EMETTEUR">';
|
||||
print '<input type="text" name="value1" value="'.PRELEVEMENT_NUMERO_NATIONAL_EMETTEUR.'" size="9" ></td>';
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom1" value="PRELEVEMENT_NUMERO_NATIONAL_EMETTEUR">';
|
||||
print '<input type="text" name="value1" value="'.PRELEVEMENT_NUMERO_NATIONAL_EMETTEUR.'" size="9" ></td>';
|
||||
}
|
||||
print '<td>'.PRELEVEMENT_NUMERO_NATIONAL_EMETTEUR.'</td></tr>';
|
||||
|
||||
print '<tr class="impair"><td>Raison sociale</td>';
|
||||
print '<tr class="impair"><td>'.$langs->trans("Name").'</td>';
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom2" value="PRELEVEMENT_RAISON_SOCIALE">';
|
||||
print '<input type="text" name="value2" value="'.PRELEVEMENT_RAISON_SOCIALE.'" size="14" ></td>';
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom2" value="PRELEVEMENT_RAISON_SOCIALE">';
|
||||
print '<input type="text" name="value2" value="'.PRELEVEMENT_RAISON_SOCIALE.'" size="14" ></td>';
|
||||
}
|
||||
print '<td>'.PRELEVEMENT_RAISON_SOCIALE.'</td></tr>';
|
||||
|
||||
print '<tr class="pair"><td>Code Banque</td>';
|
||||
print '<tr class="pair"><td>'.$langs->trans("BankCode").'</td>';
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom3" value="PRELEVEMENT_CODE_BANQUE">';
|
||||
print '<input type="text" name="value3" value="'.PRELEVEMENT_CODE_BANQUE.'" size="6" ></td>';
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom3" value="PRELEVEMENT_CODE_BANQUE">';
|
||||
print '<input type="text" name="value3" value="'.PRELEVEMENT_CODE_BANQUE.'" size="6" ></td>';
|
||||
}
|
||||
print '<td>'.PRELEVEMENT_CODE_BANQUE.'</td></tr>';
|
||||
|
||||
print '<tr class="impair"><td>Code Guichet</td>';
|
||||
print '<tr class="impair"><td>'.$langs->trans("DeskCode").'</td>';
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom4" value="PRELEVEMENT_CODE_GUICHET">';
|
||||
print '<input type="text" name="value4" value="'.PRELEVEMENT_CODE_GUICHET.'" size="6" ></td>';
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom4" value="PRELEVEMENT_CODE_GUICHET">';
|
||||
print '<input type="text" name="value4" value="'.PRELEVEMENT_CODE_GUICHET.'" size="6" ></td>';
|
||||
}
|
||||
print '<td>'.PRELEVEMENT_CODE_GUICHET.'</td></tr>';
|
||||
|
||||
print '<tr class="pair"><td>Num<EFBFBD>ro compte</td>';
|
||||
print '<tr class="pair"><td>'.$langs->trans("AccountNumber").'</td>';
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom5" value="PRELEVEMENT_NUMERO_COMPTE">';
|
||||
print '<input type="text" name="value5" value="'.PRELEVEMENT_NUMERO_COMPTE.'" size="11" ></td>';
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom5" value="PRELEVEMENT_NUMERO_COMPTE">';
|
||||
print '<input type="text" name="value5" value="'.PRELEVEMENT_NUMERO_COMPTE.'" size="11" ></td>';
|
||||
}
|
||||
print '<td>'.PRELEVEMENT_NUMERO_COMPTE.'</td></tr>';
|
||||
|
||||
print '<tr class="impair"><td>Utilisateur responsable des pr<70>l<EFBFBD>vements</td>';
|
||||
|
||||
print '<tr class="impair"><td>'.$langs->trans("ResponsibleUser").'</td>';
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom6" value="PRELEVEMENT_USER">';
|
||||
print '<select name="value6">';
|
||||
$sql = "SELECT rowid, name, firstname";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."user";
|
||||
|
||||
if ($db->query($sql))
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
print '<td align="left">';
|
||||
print '<input type="hidden" name="nom6" value="PRELEVEMENT_USER">';
|
||||
print '<select name="value6">';
|
||||
$sql = "SELECT rowid, name, firstname";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."user";
|
||||
|
||||
if ($db->query($sql))
|
||||
{
|
||||
$obj = $db->fetch_object();
|
||||
print '<option value="'.$obj->rowid.'">'.stripslashes($obj->firstname)." ".stripslashes($obj->name);
|
||||
$i++;
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $db->fetch_object();
|
||||
print '<option value="'.$obj->rowid.'">'.$obj->firstname." ".$obj->name;
|
||||
$i++;
|
||||
}
|
||||
$db->free();
|
||||
}
|
||||
$db->free();
|
||||
}
|
||||
|
||||
print '</select></td>';
|
||||
|
||||
print '</select></td>';
|
||||
}
|
||||
print '<td>';
|
||||
if (defined("PRELEVEMENT_USER") && PRELEVEMENT_USER > 0)
|
||||
{
|
||||
$cuser = new User($db, PRELEVEMENT_USER);
|
||||
$cuser->fetch();
|
||||
print $cuser->fullname;
|
||||
$cuser = new User($db, PRELEVEMENT_USER);
|
||||
$cuser->fetch();
|
||||
print $cuser->fullname;
|
||||
}
|
||||
else
|
||||
{
|
||||
print PRELEVEMENT_USER;
|
||||
print PRELEVEMENT_USER;
|
||||
}
|
||||
|
||||
print '</td></tr>';
|
||||
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
print '<tr><td align="center" colspan="3"><input type="submit" class="button" value="'.$langs->trans("Save").'"></td></tr>';
|
||||
print '<tr><td align="center" colspan="3"><input type="submit" class="button" value="'.$langs->trans("Save").'"></td></tr>';
|
||||
|
||||
print '</table>';
|
||||
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
print '</form>';
|
||||
print '</form>';
|
||||
|
||||
print '<br>';
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Notifications
|
||||
*
|
||||
* TODO Use notification module instead
|
||||
*/
|
||||
|
||||
print_titre($langs->trans("Notifications"));
|
||||
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
print '<form method="post" action="config.php?action=addnotif">';
|
||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?action=addnotif">';
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td width="30%">Nom</td>';
|
||||
print '<td width="40%">Valeur</td>';
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
print '<td width="30%">Action</td>';
|
||||
print '<td width="30%">Action</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
print '<tr class="impair"><td align="left">';
|
||||
print '<input type="hidden" name="nom6" value="PRELEVEMENT_USER">';
|
||||
print '<select name="user">';
|
||||
$sql = "SELECT rowid, name, firstname";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."user";
|
||||
$sql .= " ORDER BY name ASC";
|
||||
|
||||
if ($db->query($sql))
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
print '<tr class="impair"><td align="left">';
|
||||
print '<input type="hidden" name="nom6" value="PRELEVEMENT_USER">';
|
||||
print '<select name="user">';
|
||||
$sql = "SELECT rowid, name, firstname";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."user";
|
||||
$sql .= " ORDER BY name ASC";
|
||||
|
||||
if ($db->query($sql))
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $db->fetch_object();
|
||||
print '<option value="'.$obj->rowid.'">'.stripslashes($obj->firstname)." ".stripslashes($obj->name);
|
||||
print '<option value="'.$obj->rowid.'">'.$obj->firstname." ".$obj->name;
|
||||
$i++;
|
||||
}
|
||||
$db->free();
|
||||
}
|
||||
$db->free();
|
||||
}
|
||||
|
||||
print '</select></td>';
|
||||
|
||||
print '<td align="left">';
|
||||
print '<select name="action">';
|
||||
|
||||
print '<option value="tr">Transmission du bon</option>';
|
||||
print '<option value="em">Emission du bon</option>';
|
||||
print '<option value="cr">Cr<43>dit du bon</option>';
|
||||
print '</select></td>';
|
||||
|
||||
print '<td align="center"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td></tr>';
|
||||
|
||||
print '</select></td>';
|
||||
|
||||
print '<td align="left">';
|
||||
print '<select name="action">';
|
||||
|
||||
print '<option value="tr">Transmission du bon</option>';
|
||||
print '<option value="em">Emission du bon</option>';
|
||||
print '<option value="cr">Credit du bon</option>';
|
||||
print '</select></td>';
|
||||
|
||||
print '<td align="center"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td></tr>';
|
||||
}
|
||||
|
||||
|
||||
@ -241,35 +241,35 @@ $sql .= " WHERE u.rowid = pn.fk_user";
|
||||
$resql = $db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
$num = $db->num_rows($resql);
|
||||
$i = 0;
|
||||
$var = True;
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $db->fetch_object($resql);
|
||||
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]>";
|
||||
|
||||
print '<td>'.stripslashes($obj->firstname)." ".stripslashes($obj->name).'</td>';
|
||||
print '<td>'.$obj->action.'</td>';
|
||||
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
$num = $db->num_rows($resql);
|
||||
$i = 0;
|
||||
$var = True;
|
||||
while ($i < $num)
|
||||
{
|
||||
print '<td><a href="config.php?action=deletenotif&notif='.$obj->rowid.'">'.img_delete().'</a></td></tr>';
|
||||
$obj = $db->fetch_object($resql);
|
||||
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]>";
|
||||
|
||||
print '<td>'.$obj->firstname." ".$obj->name.'</td>';
|
||||
print '<td>'.$obj->action.'</td>';
|
||||
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
{
|
||||
print '<td><a href="'.$_SERVER["PHP_SELF"].'?action=deletenotif&notif='.$obj->rowid.'">'.img_delete().'</a></td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '</tr>';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
else
|
||||
{
|
||||
print '</tr>';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$db->free($resql);
|
||||
$db->free($resql);
|
||||
}
|
||||
print '</table>';
|
||||
|
||||
if ($user->rights->prelevement->bons->configurer)
|
||||
print '</form>';
|
||||
print '</form>';
|
||||
|
||||
|
||||
$db->close();
|
||||
|
||||
@ -14,20 +14,23 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/compta/prelevement/create.php
|
||||
\brief Prelevement
|
||||
\version $Revision$
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/includes/modules/modPrelevement.class.php");
|
||||
|
||||
$langs->load("widthdrawals");
|
||||
$langs->load("companies");
|
||||
$langs->load("banks");
|
||||
$langs->load("bills");
|
||||
|
||||
|
||||
if (!$user->rights->prelevement->bons->creer)
|
||||
accessforbidden();
|
||||
|
||||
@ -51,6 +54,10 @@ if ($_GET["action"] == 'create')
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader();
|
||||
|
||||
$h=0;
|
||||
@ -70,16 +77,16 @@ if ($nb < 0 || $nb1 < 0 || $nb11 < 0)
|
||||
dolibarr_print_error($bprev->error);
|
||||
}
|
||||
print '<table class="border" width="100%">';
|
||||
print '<tr><td>Nb de facture à prélever :</td>';
|
||||
print '<tr><td>'.$langs->trans("NbOfInvoiceToWithdraw").'</td>';
|
||||
print '<td align="right">';
|
||||
print $nb;
|
||||
print '</td><td>Notre banque :</td><td align="right">';
|
||||
print '</td><td>'.$langs->trans("BankCode").'</td><td align="right">';
|
||||
print $nb1;
|
||||
print '</td><td>Notre agence :</td><td align="right">';
|
||||
print '</td><td>'.$langs->trans("DeskCode").'</td><td align="right">';
|
||||
print $nb11;
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>Somme à prélever</td>';
|
||||
print '<tr><td>'.$langs->trans("AmountToWithdraw").'</td>';
|
||||
print '<td align="right">';
|
||||
print price($bprev->SommeAPrelever());
|
||||
print '</td>';
|
||||
@ -103,7 +110,7 @@ if ($nb)
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Aucune facture en mode de paiement 'Prélevement' n'a de demande de prélèvements en attente.<br>";
|
||||
print $langs->trans("NoInvoiceToWithdraw").'<br>';
|
||||
}
|
||||
print '<br>';
|
||||
|
||||
|
||||
@ -16,21 +16,19 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/compta/prelevement/demandes.php
|
||||
\brief Page de la liste des demandes de prélèvements
|
||||
\version $Revision$
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require_once DOL_DOCUMENT_ROOT."/includes/modules/modPrelevement.class.php";
|
||||
|
||||
$langs->load("widthdrawals");
|
||||
$langs->load("companies");
|
||||
|
||||
// Security check
|
||||
$socid = isset($_GET["socid"])?$_GET["socid"]:'';
|
||||
|
||||
@ -16,15 +16,12 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/compta/prelevement/index.php
|
||||
\brief Prelevement
|
||||
\version $Revision$
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
@ -61,12 +58,12 @@ $var=true;
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("Statistics").'</td></tr>';
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td>Nb de facture à prélever</td>';
|
||||
print '<tr '.$bc[$var].'><td>'.$langs->trans("NbOfInvoiceToWithdraw").'</td>';
|
||||
print '<td align="right">';
|
||||
print $bprev->NbFactureAPrelever();
|
||||
print '</td></tr>';
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td>Somme à prélever</td>';
|
||||
print '<tr '.$bc[$var].'><td>'.$langs->trans("AmountToWithdraw").'</td>';
|
||||
print '<td align="right">';
|
||||
print price($bprev->SommeAPrelever());
|
||||
print '</td></tr></table><br>';
|
||||
|
||||
@ -15,16 +15,13 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/compta/prelevement/liste.php
|
||||
\ingroup prelevement
|
||||
\brief Page liste des prelevements
|
||||
\version $Revision$
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
@ -33,6 +30,7 @@ if (!$user->rights->prelevement->bons->lire)
|
||||
accessforbidden();
|
||||
|
||||
$langs->load("withdrawals");
|
||||
$langs->load("companies");
|
||||
|
||||
// Sécurité accés client
|
||||
if ($user->societe_id > 0)
|
||||
|
||||
@ -15,16 +15,13 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/compta/prelevement/liste_factures.php
|
||||
\ingroup prelevement
|
||||
\brief Page liste des factures prélevées
|
||||
\version $Revision$
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
@ -34,6 +31,12 @@ require_once(DOL_DOCUMENT_ROOT."/paiement.class.php");
|
||||
// Sécurité accés client
|
||||
if ($user->societe_id > 0) accessforbidden();
|
||||
|
||||
$langs->load("companies");
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader('',$langs->trans("WithdrawedBills"));
|
||||
|
||||
|
||||
@ -14,21 +14,28 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/compta/prelevement/rejet-prelevement.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/paiement.class.php");
|
||||
|
||||
$langs->load("companies");
|
||||
|
||||
|
||||
if (!$user->rights->prelevement->bons->lire)
|
||||
accessforbidden();
|
||||
|
||||
// Sécurité accés client
|
||||
if ($user->societe_id > 0) accessforbidden();
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
llxHeader('','Bon de prélèvement - Rejet');
|
||||
|
||||
@ -92,13 +99,13 @@ 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_barre_liste($langs->trans("WithdrawsRefused"), $page, "rejets.php", $urladd, $sortfield, $sortorder, '', $num);
|
||||
print"\n<!-- debut table -->\n";
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre("Ligne N°","rejets.php","p.ref",'',$urladd);
|
||||
print_liste_field_titre("Société","rejets.php","s.nom",'',$urladd);
|
||||
print_liste_field_titre("Motif","rejets.php","pr.motif","",$urladd);
|
||||
print_liste_field_titre($langs->trans("Nb"),"rejets.php","p.ref",'',$urladd);
|
||||
print_liste_field_titre($langs->trans("ThirdParty"),"rejets.php","s.nom",'',$urladd);
|
||||
print_liste_field_titre($langs->trans("Reason"),"rejets.php","pr.motif","",$urladd);
|
||||
print '</tr>';
|
||||
|
||||
$var=True;
|
||||
|
||||
@ -15,15 +15,12 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/compta/prelevement/stats.php
|
||||
\brief Page de stats des prélèvements
|
||||
\version $Revision$
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
@ -43,7 +40,7 @@ llxHeader('','Statistiques pr
|
||||
*
|
||||
*/
|
||||
|
||||
print_titre("Statistiques prélèvements");
|
||||
print_titre($langs->trans("WithdrawStatistics"));
|
||||
|
||||
|
||||
$sql = "SELECT sum(pl.amount), count(pl.amount)";
|
||||
@ -123,14 +120,16 @@ if ($db->query($sql))
|
||||
else
|
||||
{
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* Stats sur les rejets
|
||||
*
|
||||
*/
|
||||
print '<br />';
|
||||
print_titre("Statistiques des rejets de prélèvements");
|
||||
print_titre($langs->trans("WithdrawRejectStatistics"));
|
||||
|
||||
|
||||
$sql = "SELECT sum(pl.amount), count(pl.amount)";
|
||||
|
||||
@ -528,12 +528,12 @@ class MenuLeft {
|
||||
|
||||
$newmenu->add(DOL_URL_ROOT."/compta/prelevement/index.php?leftmenu=withdraw",$langs->trans("StandingOrders"),0,$user->rights->prelevement->bons->lire);
|
||||
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/create.php",$langs->trans("NewStandingOrder"),1,$user->rights->prelevement->bons->creer);
|
||||
|
||||
//if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/demandes.php",$langs->trans("StandingOrder"),1,$user->rights->prelevement->bons->lire);
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/demandes.php?status=0",$langs->trans("StandingOrderToProcess"),1,$user->rights->prelevement->bons->lire);
|
||||
//if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/demandes.php?status=1",$langs->trans("StandingOrderProcessed"),2,$user->rights->prelevement->bons->lire);
|
||||
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/create.php",$langs->trans("NewStandingOrder"),1,$user->rights->prelevement->bons->creer);
|
||||
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/bons.php",$langs->trans("WithdrawalsReceipts"),1,$user->rights->prelevement->bons->lire);
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/liste.php",$langs->trans("WithdrawalsLines"),1,$user->rights->prelevement->bons->lire);
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/liste_factures.php",$langs->trans("WithdrawedBills"),1,$user->rights->prelevement->bons->lire);
|
||||
|
||||
@ -510,12 +510,12 @@ class MenuLeft {
|
||||
|
||||
$newmenu->add(DOL_URL_ROOT."/compta/prelevement/index.php?leftmenu=withdraw",$langs->trans("StandingOrders"),0,$user->rights->prelevement->bons->lire);
|
||||
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/create.php",$langs->trans("NewStandingOrder"),1,$user->rights->prelevement->bons->creer);
|
||||
|
||||
//if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/demandes.php",$langs->trans("StandingOrder"),1,$user->rights->prelevement->bons->lire);
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/demandes.php?status=0",$langs->trans("StandingOrderToProcess"),1,$user->rights->prelevement->bons->lire);
|
||||
//if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/demandes.php?status=1",$langs->trans("StandingOrderProcessed"),2,$user->rights->prelevement->bons->lire);
|
||||
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/create.php",$langs->trans("NewStandingOrder"),1,$user->rights->prelevement->bons->creer);
|
||||
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/bons.php",$langs->trans("WithdrawalsReceipts"),1,$user->rights->prelevement->bons->lire);
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/liste.php",$langs->trans("WithdrawalsLines"),1,$user->rights->prelevement->bons->lire);
|
||||
if ($leftmenu=="withdraw") $newmenu->add_submenu(DOL_URL_ROOT."/compta/prelevement/liste_factures.php",$langs->trans("WithdrawedBills"),1,$user->rights->prelevement->bons->lire);
|
||||
|
||||
@ -16,3 +16,11 @@ RequestStandingOrderToTreat=Request for standing orders to treat
|
||||
RequestStandingOrderTreated=Request for standing orders treated
|
||||
CustomersStandingOrders=Customer standing orders
|
||||
CustomerStandingOrder=Customer standing order
|
||||
NbOfInvoiceToWithdraw=Nb of invoice to withdraw
|
||||
AmountToWithdraw=Amount to withdraw
|
||||
WithdrawsRefused=Withdraws refused
|
||||
NoInvoiceToWithdraw=No invoice in payment mode "withdraw" is waiting
|
||||
ResponsibleUser=Responsible user
|
||||
WithdrawalsSetup=Withdrawal setup
|
||||
WithdrawStatistics=Withdraws' statistics
|
||||
WithdrawRejectStatistics=Withdraw rejects' statistics
|
||||
|
||||
@ -16,3 +16,11 @@ RequestStandingOrderToTreat=Demandes de pr
|
||||
RequestStandingOrderTreated=Demandes de prélèvements traitées
|
||||
CustomersStandingOrders=Prélèvements clients
|
||||
CustomerStandingOrder=Prélèvement client
|
||||
NbOfInvoiceToWithdraw=Nb de facture à prélever
|
||||
AmountToWithdraw=Somme à prélever
|
||||
WithdrawsRefused=Prélèvements rejetés
|
||||
NoInvoiceToWithdraw=Aucune facture en mode de paiement 'Prélevement' n'a de demande de prélèvements en attente
|
||||
ResponsibleUser=Utilisateur responsable des prélèvements
|
||||
WithdrawalsSetup=Configuration des prélèvements
|
||||
WithdrawStatistics=Statistiques des prélèvements
|
||||
WithdrawRejectStatistics=Statistiques des rejets de prélèvements
|
||||
|
||||
Loading…
Reference in New Issue
Block a user