Tryton should be able to manage the commission to send to agent of a sale.
- commission computation base on plan
- commission on invoice posted or paid
- party:
Many2Onetoparty.party - type:
Selection: Agent Of, Principal Of - company:
Many2Onetocompany.company - plan:
Many2Onetocommission.plan - currency:
Many2Onetocurrency.currency - pending_amount:
FunctionofNumericwith the sum of amount of lines not invoiced
like price_list
- name
- product:
Many2Onetoproduct.productwith typeservice - method:
Selection: On Posting, On Payment - lines
- origin:
Reference - date:
Date - agent:
Many2Onetocommission.agent - product:
Many2Onetoproduct.product(fromcommission.plan) - amount:
Decimalin the agent's currency - invoice_line:
Many2Onetoaccount.invoice.linewith the type depending on type of agent - invoice_state:
Functionreturning the state of the linked invoice - type:
Selection:in,outfrom type of agent
- agent:
Many2Onetocommission.agent
- principal:
Many2Onetocommission.agent - commissions:
One2Manytocommission.lineusingorigin - from_commissions:
One2Manytocommission.lineusinginvoice_line
- agent:
Many2Onetocommission.agent
- principal:
Many2Onetocommission.agent
- principals:
One2Manytocommission.agent
A commission line will be created on posting of the invoice for each line with the agent as party. The lines will be removed or a negative line will be created if the invoice is cancelled.
The date of the commission line will be set accordingly to the method.
The amount of the line will be computed using the plan for each invoice line.
A wizard will allow to generate invoices from commission line over a period. The invoice line will be grouped by product and agent.
- Allow the agent to reduce his commission to reduce the price.
- Historize the commission plan
- Add reporting on agent
- Support pre-paid commission
- Add support for
project_invoice - Add support when agent is the customer. The base amount of taxes must be deduced by the commission and the commission will be without taxes.