';
- print '| '.$langs->trans('Bill').' | '.$langs->trans('Date').' | ';
+ print ''.$langs->trans('Ref').' | ';
+ print ''.$langs->trans('RefSupplier').' | ';
+ print ''.$langs->trans('Date').' | ';
print ''.$langs->trans('AmountTTC').' | ';
print ''.$langs->trans('AlreadyPayed').' | ';
print ''.$langs->trans('RemainderToPay').' | ';
@@ -291,8 +291,9 @@ if ($action == 'create' || $action == 'add_paiement')
$objp = $db->fetch_object($resql);
$var=!$var;
print '
';
- print '| '.img_object($langs->trans('ShowBill'),'bill').' '.$objp->facnumber;
+ print ' | '.img_object($langs->trans('ShowBill'),'bill').' '.$objp->ref;
print ' | ';
+ print ''.$objp->facnumber.' | ';
if ($objp->df > 0 )
{
print '';
diff --git a/htdocs/fourn/fournisseur.facture.class.php b/htdocs/fourn/fournisseur.facture.class.php
index 818222b5e6d..073d1f5ce9c 100644
--- a/htdocs/fourn/fournisseur.facture.class.php
+++ b/htdocs/fourn/fournisseur.facture.class.php
@@ -190,9 +190,11 @@ class FactureFournisseur extends Facture
$obj = $this->db->fetch_object($resql);
$this->id = $rowid;
+ $this->ref = $this->id;
+ $this->ref_supplier = $obj->facnumber;
+
$this->datep = $obj->df;
$this->date_echeance = $obj->de;
- $this->ref = $obj->facnumber;
$this->libelle = $obj->libelle;
$this->remise = $obj->remise;
diff --git a/htdocs/fourn/paiement/fiche.php b/htdocs/fourn/paiement/fiche.php
index 321ee2a2d8c..a2221a05b8b 100644
--- a/htdocs/fourn/paiement/fiche.php
+++ b/htdocs/fourn/paiement/fiche.php
@@ -16,9 +16,6 @@
* 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$
*/
/**
@@ -26,7 +23,7 @@
\ingroup facture, fournisseur
\brief Onglet paiement d'un paiement fournisseur
\remarks Fichier presque identique a compta/paiement/fiche.php
- \version $Revision$
+ \version $Id$
*/
@@ -136,7 +133,8 @@ if ($mesg) print $mesg.' ';
print '';
-print '| '.$langs->trans('Ref').' | '.$paiement->id.' | ';
+print '';
+print '| '.$langs->trans('Ref').' | '.$paiement->id.' | ';
if ($conf->banque->enabled)
{
if ($paiement->bank_account)
@@ -171,7 +169,7 @@ print ' ';
* Liste des factures
*/
$allow_delete = 1 ;
-$sql = 'SELECT f.facnumber, f.total_ttc, pf.amount, f.rowid as facid, f.paye, f.fk_statut, s.nom, s.rowid as socid';
+$sql = 'SELECT f.rowid as ref, f.facnumber as ref_supplier, f.total_ttc, pf.amount, f.rowid as facid, f.paye, f.fk_statut, s.nom, s.rowid as socid';
$sql .= ' FROM '.MAIN_DB_PREFIX.'paiementfourn_facturefourn as pf,'.MAIN_DB_PREFIX.'facture_fourn as f,'.MAIN_DB_PREFIX.'societe as s';
$sql .= ' WHERE pf.fk_facturefourn = f.rowid AND f.fk_soc = s.rowid';
$sql .= ' AND pf.fk_paiementfourn = '.$paiement->id;
@@ -182,9 +180,11 @@ if ($resql)
$i = 0;
$total = 0;
- print '
';
+ print ' '.$langs->trans("Invoices").' ';
+ print '';
print '';
- print '| '.$langs->trans('Bill').' | ';
+ print ''.$langs->trans('Ref').' | ';
+ print ''.$langs->trans('RefSupplier').' | ';
print ''.$langs->trans('Status').' | ';
print ''.$langs->trans('Company').' | ';
print ''.$langs->trans('AmountTTC').' | ';
@@ -202,8 +202,9 @@ if ($resql)
$var=!$var;
print ' ';
print '| '.img_object($langs->trans('ShowBill'),'bill').' ';
- print $objp->facnumber;
+ print $objp->ref;
print " | \n";
+ print ''.$objp->ref_supplier." | \n";
print ''.$facturestatic->LibStatut($objp->paye,$objp->fk_statut,2,1).' | ';
print ''.img_object($langs->trans('ShowCompany'),'company').' '.$objp->nom.' | ';
print ''.price($objp->amount).' | ';
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index 64af9c14c3d..4d1be37f8f4 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -237,6 +237,7 @@ FullList=Full list
Statistics=Statistics
Status=Status
Ref=Ref.
+RefSupplier=Ref. supplier
CommercialProposals=Commercial proposals
Comment=Comment
Comments=Comments
diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang
index 43d98dded06..1d18b4f5723 100644
--- a/htdocs/langs/fr_FR/main.lang
+++ b/htdocs/langs/fr_FR/main.lang
@@ -238,6 +238,7 @@ FullList=Liste compl
Statistics=Statistiques
Status=État
Ref=Réf.
+RefSupplier=Réf. fournisseur
CommercialProposals=Propositions commerciales/devis
Comment=Commentaire
Comments=Commentaires
|