Sales agent/representative per order instead of per client

Hi all,

Currently, Dolibarr allows for assigning one or more sales agents (commercial representatives) per client. But our sales agents work per order, not per client. Is there any way to assign sales agents at the creation of orders instead of assigning them to clients?

Thanks a lot!

Hello Antonio, you can set your representative for the order on the order contact tab (internal contact).

Dear Altatof, thanks a lot for your quick reply! :+1:

We do set the internal contact like that already in the order contact tab, but still in the margins section (/dolibarr/margin/agentMargins.php), it does not take the sales representative into account. In this margins section, it still attributes the results of the order/invoice to the representative which is set in the client tab.

What we like to do is assign a representative per order, and that this representative is the one to whom the results of the order are attributed in /dolibarr/margin/agentMargins.php.

Is that possible?

Thanks again!

hello, did you check the margin module setup ? (last parameter)

Dear Altatof, thanks! You are officially my hero today. It works perfectly! :clap: :+1:

1 Like