Issue with incorrect discount in notification template

7 0 0

Hi All,

I have some issue in the Order edited invoice notification template around line

<tr class="subtotal-line">
  <td class="subtotal-line__title">
        <span class="subtotal-line__discount">
          <img src="{{ 'notifications/discounttag.png' | shopify_asset_url }}" width="18" height="18" class="discount-tag-icon" />
          <span class="subtotal-line__discount-title">{{ discount_title }}</span>
  <td class="subtotal-line__value">
    <strong>-{{ discount_application.total_allocated_amount | money }}</strong>

After I edit the order (not paid, not fulfilled) on request of customer, Shopify sends the invoice to customer's email.

{{ discount_application.total_allocated_amount | money }} appears to give wrong discount figure after the total has been reduced as result of editing.

At the back-end, everything is fine. The new total is also correct, but the discount figure is rather referring to original\initial order. This is confusing my customer. How to fix this?

P.S. I've tried also to edit the order multiple times, the discount seems adds up at every correction, is this ok?!