Trad: Traductions de paiement et info
This commit is contained in:
parent
7ad34abc83
commit
1dbe0bce67
@ -20,11 +20,22 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*! \file htdocs/compta/paiement/fiche.php
|
||||||
|
\ingroup facture
|
||||||
|
\brief Onglet paiement d'un paiement
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require("../../paiement.class.php");
|
require("../../paiement.class.php");
|
||||||
|
|
||||||
$user->getrights('facture');
|
$user->getrights('facture');
|
||||||
|
|
||||||
|
$langs->load("bills");
|
||||||
|
$langs->load("companies");
|
||||||
|
|
||||||
if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes' && $user->rights->facture->creer)
|
if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes' && $user->rights->facture->creer)
|
||||||
{
|
{
|
||||||
$paiement = new Paiement($db);
|
$paiement = new Paiement($db);
|
||||||
@ -42,8 +53,8 @@ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes' && $user-
|
|||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
print '<div class="tabs">';
|
print '<div class="tabs">';
|
||||||
print '<a href="fiche.php?id='.$_GET["id"].'" id="active" class="tab">Paiement</a>';
|
print '<a href="fiche.php?id='.$_GET["id"].'" id="active" class="tab">'.$langs->trans("Payment").'</a>';
|
||||||
print '<a class="tab" href="info.php?id='.$_GET["id"].'">Info</a>';
|
print '<a class="tab" href="info.php?id='.$_GET["id"].'">'.$langs->trans("Info").'</a>';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
print '<div class="tabBar">';
|
print '<div class="tabBar">';
|
||||||
@ -69,13 +80,15 @@ $html = new Form($db);
|
|||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
print '<tr><td valign="top">Numéro : '.$paiement->numero."<br>";
|
print '<tr><td valign="top">';
|
||||||
|
|
||||||
print 'Date : '.strftime("%d %B %Y",$paiement->date)." <br>";
|
print $langs->trans("Numero").' : '.$paiement->numero."<br>";
|
||||||
|
|
||||||
print $langs->trans("Type").' : '.$paiement->type_libelle." <br>";
|
print $langs->trans("Date").' : '.strftime("%d %B %Y",$paiement->date)."<br>";
|
||||||
|
|
||||||
print 'Montant : '.$paiement->montant." ".MAIN_MONNAIE."<br>";
|
print $langs->trans("Type").' : '.$paiement->type_libelle."<br>";
|
||||||
|
|
||||||
|
print $langs->trans("Amount").' : '.$paiement->montant." ".MAIN_MONNAIE."<br>";
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print "</table>";
|
print "</table>";
|
||||||
@ -98,10 +111,10 @@ if ($db->query($sql))
|
|||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
print '<br><table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
print '<br><table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>Facture</td><td>Société</td>';
|
print '<td>'.$langs->trans("Bill").'</td><td>'.$langs->trans("Company").'</td>';
|
||||||
print '<td align="right">Montant TTC</td>';
|
print '<td align="right">'.$langs->trans("AmountTTC").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
if ($num > 0)
|
if ($num > 0)
|
||||||
@ -136,16 +149,14 @@ if ($db->query($sql))
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
print "</div>";
|
print "<br></div>";
|
||||||
|
|
||||||
if ($user->societe_id == 0 && $allow_delete)
|
if ($user->societe_id == 0 && $allow_delete)
|
||||||
{
|
{
|
||||||
print '<div class="tabsAction">';
|
print '<div class="tabsAction">';
|
||||||
// L'edition est pour l'instant inutile
|
|
||||||
//print '<a class="tabAction" href="fiche.php?id='.$_GET["id"].'&action=edit">Editer</a>';
|
|
||||||
|
|
||||||
if ($_GET["action"] != 'delete') {
|
if ($_GET["action"] != 'delete') {
|
||||||
print '<a class="tabAction" href="fiche.php?id='.$_GET["id"].'&action=delete">Supprimer</a>';
|
print '<a class="tabAction" href="fiche.php?id='.$_GET["id"].'&action=delete">'.$langs->trans("Delete").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
* Copyright (C) 2004 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,17 +20,24 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*! \file htdocs/compta/paiement/info.php
|
||||||
|
\ingroup facture
|
||||||
|
\brief Onglet info d'un paiement
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require("../../paiement.class.php");
|
require("../../paiement.class.php");
|
||||||
/*
|
|
||||||
*
|
$langs->load("bills");
|
||||||
*
|
$langs->load("companies");
|
||||||
*/
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
print '<div class="tabs">';
|
print '<div class="tabs">';
|
||||||
print '<a class="tab" href="fiche.php?id='.$_GET["id"].'">Paiement</a>';
|
print '<a class="tab" href="fiche.php?id='.$_GET["id"].'">'.$langs->trans("Payment").'</a>';
|
||||||
print '<a class="tab" href="info.php?id='.$_GET["id"].'" id="active">Info</a>';
|
print '<a class="tab" href="info.php?id='.$_GET["id"].'" id="active">'.$langs->trans("Info").'</a>';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print '<div class="tabBar">';
|
print '<div class="tabBar">';
|
||||||
|
|
||||||
@ -42,7 +50,9 @@ $paiement = new Paiement($db);
|
|||||||
$paiement->fetch($_GET["id"], $user);
|
$paiement->fetch($_GET["id"], $user);
|
||||||
$paiement->info($_GET["id"]);
|
$paiement->info($_GET["id"]);
|
||||||
|
|
||||||
|
print '<table width="100%"><tr><td>';
|
||||||
dolibarr_print_object_info($paiement);
|
dolibarr_print_object_info($paiement);
|
||||||
|
print '</td></tr></table>';
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
# Dolibarr language file - en_US - bills
|
# Dolibarr language file - en_US - bills
|
||||||
Bill=Bill
|
Bill=Bill
|
||||||
Bills=Bills
|
Bills=Bills
|
||||||
|
Payment=Payment
|
||||||
|
Payments=Payments
|
||||||
ClassifyPayed=Classify 'Payed'
|
ClassifyPayed=Classify 'Payed'
|
||||||
ClassifyCanceled=Classify 'Abandonned'
|
ClassifyCanceled=Classify 'Abandonned'
|
||||||
CreateBill=Create Bill
|
CreateBill=Create Bill
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
# Dolibarr language file - fr_FR - bills
|
# Dolibarr language file - fr_FR - bills
|
||||||
Bill=Facture
|
Bill=Facture
|
||||||
Bills=Factures
|
Bills=Factures
|
||||||
|
Payment=Paiement
|
||||||
|
Payments=Paiements
|
||||||
ClassifyPayed=Classer 'Payée'
|
ClassifyPayed=Classer 'Payée'
|
||||||
ClassifyCanceled=Classer 'Abandonnée'
|
ClassifyCanceled=Classer 'Abandonnée'
|
||||||
CreateBill=Créer Facture
|
CreateBill=Créer Facture
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user