diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php index 35318174999..1cf3e4566e8 100644 --- a/htdocs/compta/facture/list.php +++ b/htdocs/compta/facture/list.php @@ -10,7 +10,7 @@ * Copyright (C) 2013 Florian Henry * Copyright (C) 2013 Cédric Salvador * Copyright (C) 2015 Jean-François Ferry - * Copyright (C) 2015-2021 Ferran Marcet + * Copyright (C) 2015-2022 Ferran Marcet * Copyright (C) 2017 Josep Lluís Amador * Copyright (C) 2018 Charlene Benke * Copyright (C) 2019-2021 Alexandre Spangaro @@ -2060,7 +2060,7 @@ if ($resql) { // Sales representatives print ''; if ($obj->socid > 0) { - $listsalesrepresentatives = $thirdpartystatic->getSalesRepresentatives($user); + $listsalesrepresentatives = $companystatic->getSalesRepresentatives($user); if ($listsalesrepresentatives < 0) { dol_print_error($db); }