Earlier, in some scenarios with discount, invoice was having incorrect amount. This has now been fixed.