Clean code

This commit is contained in:
Laurent Destailleur (aka Eldy) 2025-02-10 13:03:37 +01:00
parent c45adc4e96
commit 09ba5162e7

View File

@ -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