Great module!
I've tested it on our live shop and the outcome scared me, the profit showed was less then we expected.
I did some calculations and found out that in case of discount your module calculates the discount twice. Your starting amount (total) is the paid amount, here the discount is already distracted. When you calculate the profit your module distracts the discount again.
Hope you can change it.
Best regards,
Piet