';
}
/*
*
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 0ba90bc3536..7a3ffb35cc8 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -1131,8 +1131,9 @@ else
* Liste des actions propres aux document
*
*/
- $sql = "SELECT ".$db->pdate("a.datea")." as da, a.note";
- $sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a WHERE a.fk_soc = $fac->socidp AND a.fk_action in (9,10) AND a.fk_facture = $fac->id";
+ $sql = "SELECT ".$db->pdate("a.datea")." as da, a.note, code ";
+ $sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."user as u ";
+ $sql .= " WHERE a.fk_user_author = u.rowid and a.fk_soc = $fac->socidp AND a.fk_action in (9,10) AND a.fk_facture = $fac->id";
$result = $db->query($sql);
if ($result)
@@ -1144,7 +1145,7 @@ else
$i = 0; $total = 0;
print '