Trad: Et encore des traductions (stock, factures)

This commit is contained in:
Laurent Destailleur 2005-02-02 00:15:19 +00:00
parent 4b5f87ea69
commit b5c1bae272
5 changed files with 25 additions and 12 deletions

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Christophe Combelles <ccomb@free.fr>
*
* This program is free software; you can redistribute it and/or modify
@ -416,7 +416,7 @@ else
*/
print '<table class="border" width="100%">';
print "<tr><td>".$langs->trans("Company")."</td><td colspan=\"3\"><b><a href=\"../fiche.php?socid=$fac->socidp\">$fac->socnom</a></b></td>";
print "<td align=\"right\"><a href=\"index.php?socid=$fac->socidp\">Autres factures</a></td>\n";
print "<td align=\"right\"><a href=\"index.php?socid=$fac->socidp\">".$langs->trans("OtherBills")."</a></td>\n";
print "</tr>";
print '<tr><td>'.$langs->trans("Date")."</td><td colspan=\"4\">".dolibarr_print_date($fac->datep,"%A %d %B %Y")."</td></tr>\n";
print '<tr><td>'.$langs->trans("Label").'</td><td colspan="4">';

View File

@ -155,8 +155,8 @@ if ($result)
$var=!$var;
print "<tr $bc[$var]>";
print "<td><a href=\"fiche.php?facid=$obj->facid\">".img_file()."</a>\n";
print "&nbsp;<a href=\"fiche.php?facid=$obj->facid\">$obj->facnumber</a></td>\n";
print "<td><a href=\"fiche.php?facid=$obj->facid\">".img_object($langs->trans("ShowBill"),"bill")."</a>\n";
print " <a href=\"fiche.php?facid=$obj->facid\">$obj->facnumber</a></td>\n";
print "<td>".strftime("%d %b %Y",$obj->datef)."</td>\n";
print '<td>'.stripslashes("$obj->libelle").'</td>';
print '<td>';

View File

@ -62,7 +62,7 @@ if ( $societe->fetch($socid) )
$addons[0][1] = $societe->nom;
llxHeader('','Fiche Fournisseur : '.$societe->nom, $addons);
llxHeader('',$langs->trans("SupplierCard").' : '.$societe->nom, $addons);
/*
* Affichage onglets
@ -121,7 +121,7 @@ if ( $societe->fetch($socid) )
*
*
*/
print '<table width="100%" cellspacing="0" cellpadding="2">';
print '<table width="100%">';
print '<tr><td valign="top" width="50%">';
/*
*
@ -146,10 +146,11 @@ if ( $societe->fetch($socid) )
*
*/
if ($conf->produit->enabled || $conf->service->enabled) {
$langs->load("products");
print '<table class="border" width="100%">';
$var=!$var;
print "<tr $bc[$var]>";
print '<td><a href="'.DOL_URL_ROOT.'/product/liste.php?fourn_id='.$societe->id.'">Liste des produits et services</td></tr>';
print '<td><a href="'.DOL_URL_ROOT.'/product/liste.php?fourn_id='.$societe->id.'">'.$langs->trans("ProductsAndServices").'</td></tr>';
print '</table><br>';
}
@ -172,7 +173,7 @@ if ( $societe->fetch($socid) )
{
print '<table class="border" width="100%">';
print "<tr $bc[$var]>";
print "<td colspan=\"2\"><a href=\"commande/liste.php?socid=$societe->id\">Dernières commandes ($num)</td></tr>";
print "<td colspan=\"2\"><a href=\"commande/liste.php?socid=$societe->id\">".$langs->trans("LastOrders",$num)."</td></tr>";
}
while ($i < $num && $i < 5)
{
@ -212,9 +213,13 @@ if ( $societe->fetch($socid) )
* Liste des factures associées
*
*/
$langs->load("bills");
$max=5;
$sql = "SELECT p.rowid,p.libelle,p.facnumber,".$db->pdate("p.datef")." as df, total_ttc as amount, paye";
$sql .= " FROM ".MAIN_DB_PREFIX."facture_fourn as p WHERE p.fk_soc = $societe->id";
$sql .= " ORDER BY p.datef DESC LIMIT 4";
$sql .= " ORDER BY p.datef";
if ( $db->query($sql) )
{
$var=!$var;
@ -224,9 +229,11 @@ if ( $societe->fetch($socid) )
{
print '<table class="border" width="100%">';
print "<tr $bc[$var]>";
print "<td colspan=\"4\"><a href=\"facture/index.php?socid=$societe->id\">Dernières factures fournisseurs ($num)</td></tr>";
print "<td colspan=\"4\">";
print "<table class=\"noborder\" width=\"100%\"><tr><td>".$langs->trans("LastSuppliersBills",min($num,$max))."</td><td align=\"right\"><a href=\"facture/index.php?socid=$societe->id\">".$langs->trans("AllBills")." (".$num.")</td></tr></table>";
print "</td></tr>";
}
while ($i < $num && $i < 5)
while ($i < $num && $i < $max)
{
$obj = $db->fetch_object();
$var=!$var;
@ -234,7 +241,7 @@ if ( $societe->fetch($socid) )
print "<tr $bc[$var]>";
print '<td>';
print '<a href="facture/fiche.php?facid='.$obj->rowid.'">';
print $obj->facnumber.'</a> '.substr($obj->libelle,0,40).'...</td>';
print img_object($langs->trans("ShowBill"),"bill")." ".$obj->facnumber.'</a> '.substr($obj->libelle,0,40).'...</td>';
print "<td align=\"right\" width=\"80\">".dolibarr_print_date($obj->df)."</td>";
print '<td align="right">'.$obj->amount.'</td>';
$fac = new FactureFourn($db);

View File

@ -44,7 +44,10 @@ NewBill=New bill
Prélèvements=Prelevment
Prélèvements=Prelevments
LastBills=Last %s bills
LastCustomersBills=Last %s customers bills
LastSuppliersBills=Last %s suppliers bills
AllBills=All bills
OtherBills=Other bills
DraftBills=Draft bills
Unpayed=Unpayed
ConfirmDeleteBill=Are you sure you want to delete this bill ?

View File

@ -44,7 +44,10 @@ NewBill=Nouvelle facture
Prélèvements=Prélèvement
Prélèvements=Prélèvements
LastBills=Les %s dernieres factures
LastCustomersBills=Les %s dernieres factures clientes
LastSuppliersBills=Les %s dernieres factures fournisseurs
AllBills=Toutes les factures
OtherBills=Autres factures
DraftBills=Factures brouillons
Unpayed=Impayées
ConfirmDeleteBill=Etes-vous sur de vouloir supprimer cette facture ?