From f217e8e90cacddc06056ea8825189e26a9267850 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 7 Jan 2009 13:09:42 +0000 Subject: [PATCH] Fix: Bad ref in supplier list --- ChangeLog | 7 ++++++- htdocs/fourn/facture/index.php | 15 +++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index ddfc863ffe4..dfac0f7433c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,14 +7,19 @@ For users: - When creating a contact from a third party, informations from third party card are automatically suggested. - Sort list of languages in combo box. +- New: EMails links are show with function dol_print_email - Fixed: Failed to go on the future view of bank transaction if there is no future bank transaction already wrote. +- Fixed: Bad ref in supplier list. +- Fixed: Bad link in product statistics for supplier referers. For translators: - Added ca_ES language files For developers: -- Removed som deprecated files +- Removed som deprecated files. +- Renamed all function dolibarr_xxx into dol_xxx to have same prefix everywhere. + ***** Changelog for 2.5 compared to 2.4 ***** diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 4e6cc40bc29..e4f308b4f72 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2008 Laurent Destailleur + * Copyright (C) 2004-2009 Laurent Destailleur * * 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 @@ -33,7 +33,7 @@ $langs->load("companies"); $socid = $_GET["socid"]; -// Sécurité accés client +// Security check if ($user->societe_id > 0) { $_GET["action"] = ''; @@ -54,9 +54,9 @@ if (! $sortfield) $sortfield="fac.datef"; /* - * Recherche - * + * Actions */ + if ($_POST["mode"] == 'search') { if ($_POST["mode-search"] == 'soc') @@ -80,8 +80,7 @@ if ($_POST["mode"] == 'search') /* - * Mode Liste - * + * View */ llxHeader(); @@ -205,7 +204,7 @@ if ($resql) print ""; print ''; $facturestatic->id=$obj->facid; - $facturestatic->ref=$obj->facnumber; + $facturestatic->ref=$obj->ref; print $facturestatic->getNomUrl(1); if (($obj->paye == 0) && ($obj->fk_statut > 0) && $obj->date_echeance < (time() - $conf->facture->fournisseur->warning_delay)) print img_picto($langs->trans("Late"),"warning"); print "\n"; @@ -225,7 +224,7 @@ if ($resql) // Affiche statut de la facture print ''; - // \todo le montant deja payé obj->am n'est pas définie + // \todo le montant deja pay� obj->am n'est pas d�finie print $facturestatic->LibStatut($obj->paye,$obj->fk_statut,5,$objp->am); print '';