El 23/10/14 a les 19:03, Cédric Krier ha escrit:
On 23 Oct 12:41, Cédric Krier wrote:
>Hi,
>
>I started a commission blueprint and module [1] but I have some doubt
>about the taxes management.
>I just find that the agent must invoice the company for his commission
>applying the taxes used for the sale. In this case the current module
>design doesn't really work.
>
>But in an other side, the module was also designed with in mind the
>possibility to use it for employees. In such case, there are no invoices
>nor taxes. But now I doubt if this can be done like that.
>
>So I'm wondering if I should not add a checkbox on Agent to create
>invoice line (standalone) instead of direct accounting move?
>
>[1]https://code.google.com/p/tryton/wiki/CommissionModule
Finaly, I think I should rework the all design of this module.

I propose to store in a separate object the commission due.
So this object will have an origin, an agent and an amount.
There will be a wizard to convert those object/lines into a purchase per
agent using the product on the plan for taxes (using the usual tax
rules).

It think this is the right way to as it's the one that allows more customization.

Maybe we can have a state field in order to know if the comission is draft, waiting for the supplier invoice or it have been paid?

Like that the supplier invoice will have grouped lines (like the
invoice on timesheet).
An extra module could be create to create standalone line in case of the
agent submitting his invoices.

This is our use case. That is because we want to create the commission lines before the agent sends the invoice and we check the comissions they send to us, with the comissions that the system calculated in order to ensure that everything it's correct.

For the commission to employees, I guess we could still do an invoice
but without any taxes so it could be managed by using a dedicated product.

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Reply via email to