I encounters this behavior when developing a mod:

When I call $order->['total'] on the checkout page, it shows the total with group discount applied. However, when I call it on the ajax, the total is shown without the discount applied.

I think I may have missed some thing here? Any suggestion is really appreciated.

Thank you