Message 70857

Author
bernatnan
Date
2021-10-11.12:50:30
Message id
70857

Content

>
> I do not understand. What are you calling "commissions"?
>

The fields 'commissions' in the 'account.invoice.line' model.

On one side we have in the commission module, in the invoice.py file; there
is the 'def cancel' function of the invoice model. There, the commissions
associated with an invoice/invoice_line are removed if not setted the
'from_commissions' field or created the the cancel commissions if the
'from_commissions' is set.

And on the other in the same model, there is the 'def _credit' function
that sets the agent of the new credit invoice, so this will create the new
credit commissions when the credit invoice will be posted.

If you create the credit invoice throw the wizard and set it to
'with_refund', Tryton will leave the commission inconsistent, so create new
credit commissions when create the credit invoice, but in the "original"
invoice or remove the existent commissions or create a cancel commissions
twice.
History
Date User Action Args
2021-10-11 12:50:30bernatnansetrecipients: + ced
2021-10-11 12:50:30bernatnanlinkissue10845 messages
2021-10-11 12:50:30bernatnancreate

Showing 10 items. Show all history (warning: this could be VERY long)