Contracts management

I need to know how this Contracts management work?
and is it possible to bind a contract with user or Stops/agents?

Can I set a discount or commission is the contract setup?

nkaaya wrote:

From what I understand (the plan is not so concise, you may want to think more in-depth about it), you have 3 needs:

1- The company must be able to sell directly to a client.
2- Agents sellings must be trackable, so that the company can get a report on who sold what, to pay their commissions.
3- Contracts must be made for tractors for the first 1000 km.

You have two ways of doing it: either make a module to perfectly fit your needs, or trick the Dolibarr system to manage a pseudo-agents system.

The problem with Dolibarr is that it was made in a two-entities relationship: the company, and the client. There’s no agent in-between.

That said, there are a few things you can try.

For 1 and 2, you can easily do that by managing rights: create a group for Agents (so that every agent has the same set of rights), and make them only able to edit their own propales and invoices. Then create one login for every agent.

This means that every agent can then access Dolibarr, but only their propales/invoices. These can either be produced by the company (no commission), or an agent (in this case, the name of the agent that created the propale/invoice will be shown, and only him or the company can later edit it, not any other agent).

Then you can make some statistics with a simple SQL request, but I think Dolibarr may have some kind of stastics module, so you may take a look about this.

For 3, you can just use the Contract module, there’s no problem about that.

You can also try to take a look onto Dolistore to see if another module may fit your bill, this may be the cheapest way of doing it.

And I don’t think you’d need CustomFields to achieve what you want to do, unless you need to input more data.

I can also propose you an offer to make you a tailored module for your needs, you can contact me at this mail address:

http://www.google.com/recaptcha/mailhide/d?k=01GZ465xAGD3iYJctswfJhqg==&c=Hbb30vgeDX9ABQVBv3x-Wa525q6OKq9AaBebFjdnXns=

(this is a reCaptcha protection to avoid bot spamming, it will give you my mail after entering the codes)