When a status line is created it seems that the message is not updated in every record.
In my case I created a message, then a status line for the C_Order - C_OrderLine table and it shows the right message but when I navigate through the different records the status line is not always updated.
you can check in demo.globalqss in the Sales Order window this behavoir.
Here you can see how it works in a line.
Then I navigate to the next record with no lines and the mesage is still there.
The I navigate to another records with different values and it updates properly.
And in the last record where it has lines, the message does not update (you can check that the SUM of the lines is not correct)
The first value in the message is SUM (C_OrderLine.linenetamt)
Local - test.demoglobalqss.com
, you can find the patch attached, please review it and let me know if you find any problems.
Regards,
Diego Ruiz
BX Service GmbH
Committed a different patch - for your test case on demo is better to use LEFT JOIN on C_OrderLine and M_Product so it can show information for orders without lines.