{% load base_filters %} {% if obj %} {% trans 'Corporate Membership for' %} {{ obj|truncatewords:10 }} #{{ obj.id }} ({% if obj.renewal %}{{ obj.renew_dt|date:'N d, Y' }}{% else %}{{ obj.join_dt|date:'N d, Y' }}{% endif %} - {% if obj.expiration_dt %}{{ obj.expiration_dt|date:'N d, Y' }}{% endif %}) {% else %} {% trans "Corporate Membership information not available" %} {% endif%} {% if obj and obj.donation_amount and not obj.donation %} {{ invoice.total|subtract:obj.donation_amount|format_currency }} {% else %} {{ invoice.total|format_currency }} {% endif%} {% if obj.renewal %} {% if obj.donation_amount and not obj.donation %} {% trans "Donation Amount " %} {{ obj.donation_amount|format_currency }} {% endif %} {% for renew_entry in obj.indivmembershiprenewentry_set.all %} {{ renew_entry.membership.user.get_full_name }} #{{ renew_entry.membership.member_number }} {% endfor %} {% endif%}