Issue 11723

Title
Commission added to cost instead of being deduced
Priority
bug
Status
resolved
Nosy list
ced, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2022-09-21.11:40:44 by ced, last changed 1 week ago by roundup-bot.

Messages

New changeset b4ee92c761a3 by Cédric Krier in branch 'default':
Deduce the commission price from the cost
https://hg.tryton.org/tryton-env/rev/b4ee92c761a3
New changeset 24b9e7b0c096 by Cédric Krier in branch 'default':
Deduce the commission price from the cost
https://hg.tryton.org/modules/commission/rev/24b9e7b0c096
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-09-21.11:40:44

In issue11327 the commission price is added to the cost in margin report but indeed the sign of the commission price is negative when it is the same type (so a agent commission on a customer invoice) and positive for different type (a principal commission on a customer invoice).
So the cost in margin report must be deduced by the commission price to make the agent commission appears as an extra cost.

History
Date User Action Args
2022-09-25 20:32:33roundup-botsetmessages: + msg78314
2022-09-25 20:32:28roundup-botsetmessages: + msg78313
nosy: + roundup-bot
status: testing -> resolved
2022-09-21 12:16:17reviewbotsetmessages: + msg78265
nosy: + reviewbot
2022-09-21 11:43:37cedsetkeyword: + review
reviews: 423891003
status: in-progress -> testing
2022-09-21 11:40:44cedcreate

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