diff --git a/htdocs/core/class/discount.class.php b/htdocs/core/class/discount.class.php index dfdac04b9a4..5cd03e46f74 100644 --- a/htdocs/core/class/discount.class.php +++ b/htdocs/core/class/discount.class.php @@ -339,7 +339,7 @@ class DiscountAbsolute extends CommonObject include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; $tmpinvoice = new Facture($this->db); $tmpinvoice->fetch($this->fk_facture_source); - $userid = $tmpinvoice->fk_user_author; // We use the author of invoice + $userid = $tmpinvoice->user_creation_id; // We use the author of invoice } // Insert request