From 1f05800909d1eb967d175684c153736ed804d7f5 Mon Sep 17 00:00:00 2001 From: simnandez Date: Wed, 21 Aug 2013 12:06:02 +0200 Subject: [PATCH] Fix: [ bug #1037 ] Consumption> Supplier invoices related --- ChangeLog | 1 + htdocs/product/stats/facture_fournisseur.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9ed9538ae20..f87741a3d0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -104,6 +104,7 @@ Fix: Supplier invoice and supplier order are not displayed into object link into Fix: [ bug #1033 ] SUPPLIER REF disappeared Fix: update extrafield do not display immediatly after update Fix: Fix bug with canvas thirdparty +Fix: [ bug #1037 ] Consumption> Supplier invoices related ***** ChangeLog for 3.4 compared to 3.3.* ***** diff --git a/htdocs/product/stats/facture_fournisseur.php b/htdocs/product/stats/facture_fournisseur.php index 4c520bd292d..fcf03068935 100644 --- a/htdocs/product/stats/facture_fournisseur.php +++ b/htdocs/product/stats/facture_fournisseur.php @@ -2,6 +2,7 @@ /* Copyright (C) 2003-2007 Rodolphe Quiedeville * Copyright (C) 2004-2009 Laurent Destailleur * Copyright (C) 2005-2012 Regis Houssin + * Copyright (C) 2013 Juanjo Menent * * 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 @@ -121,7 +122,7 @@ if ($id > 0 || ! empty($ref)) print ''; - $sql = "SELECT distinct s.nom, s.rowid as socid, s.code_client, f.facnumber, f.total_ht as total_ht,"; + $sql = "SELECT distinct s.nom, s.rowid as socid, s.code_client, f.ref, f.total_ht as total_ht,"; $sql.= " f.datef, f.paye, f.fk_statut as statut, f.rowid as facid"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", sc.fk_soc, sc.fk_user "; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s";