Discount Code applied to ALL products only shows on Admin notification

On the admin notification, only the discount codes that are applied to all products show. When the discount code is applied to a specific product, it does not show, but the pricing is correct. How can I have any discount code showing on the admin notification? Below is the code that is in the notification email.

{% assign discount_value = 0 %}
{% for discount_application in discount_applications %}
  {% if discount_application.target_selection == 'all' %}
      {% assign discount_value = discount_application.total_allocated_amount %}
  {% endif %}
{% endfor %}
        

  
    

      {% if titleBold %}
        **Subtotal**
      {% else %}
        Subtotal
      {% endif %}
    

  
  
    {% if valueBold %}
      **{{ subtotal_price | plus: discount_value | money }}**
    {% else %}
      {{ subtotal_price | plus: discount_value | money }}
    {% endif %}  
  

        {% for discount_application in discount_applications %}
          {% if discount_application.target_selection == 'all' %}
            {% capture discount_title %}
              {% if discount_application.title %}
                {{ discount_application.title | upcase }}
              {% else %}
                Discount
              {% endif %}
            {% endcapture %}
            

  
    

      {% if titleBold %}
        **Discount**
      {% else %}
        Discount
      {% endif %}
        
          {% if discount_title.size > 0 %}({{ discount_title | strip }}){% endif %}
        
    

  
  
    {% if valueBold %}
      **-{{ discount_application.total_allocated_amount | money }}**
    {% else %}
      -{{ discount_application.total_allocated_amount | money }}
    {% endif %}  
  

{% endif %}
{% endfor %}