This repository was archived by the owner on Aug 26, 2025. It is now read-only.
... I know I'm very boring #14307
Unanswered
davide-alghi
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
... but when there is something I don't understand it's like I have a little pebble in my shoe that torments me 😁
I had already opened a discussion about Profit, Margin and Markup: #12574
But now I notice a strange thing that I don't understand.
Sales Orders lineitems
in the lineitems the Percentage Margin - Margin (%) - is calculated with
that's
putting aside the fact that, for me, it's the Markup and not the Margin, I do not understand why, in the totals row, the Margin (%) total is calculated with
that's
this is a completely different calculation (and in this case it would be, from my point of view, the correct value for the Margin (%)) than the one used for each single lineitem.
I'd like to understand why and if I'm wrong.
However, beyond this, when I generate a new Sales Order via workflow task, the entity fields "sum_*" are not calculated:
YetiForceCRM/modules/Vtiger/models/Record.php
Line 1306 in 1daf10d
All reactions