Show scrpit discounts in order summary Shopify Plus

Shopify Partner
2 0 1

HI We are using a  Shopify Plus platform and in this we are using a Shopify ruby scripts to provide discounts on products on some conditions. The discounts are working fine but the issue is, the discounts provided by scripts are not showing in the summary area of the order and discount shows 0.   Please refer to the screenshot In which we can see product is discounted 60%  , but in order summary discount shows 0.  Can you please tell me how can we show discount in order summary or get the line items discount on the real time, so suppose if somebody applies coupon on checkout and at that time i need to get updated discount.


Please suggest.


Thanks in advance.