Discount total is not showing in the totals section

The discount total is not showing in the Totals section. The variable used is $discount_amount. The discount is applied and the Total at the end is correct.
Where is this variable coded? I see it in the parser for the template, but where else?

Perhaps related to this?

probably, but with the latest version the workaround does not work.

Did you check in /modules/AOS_Products_Quotes/line_items.js