Date, Type, Amount, Payment Method, Details, Notes
{% for entity in entities %}
"{{ entity.trandate|date('m-d-Y') }}","{% if entity.trantype == 'MEMBERSHIP_NEW' %}New Membership Fee{% elseif entity.trantype == 'MEMBERSHIP_RENEW' %}Renewal Fee{% elseif entity.trantype == 'LUNCHEON_FEE' %}Luncheon Fee{% elseif entity.trantype == 'PARKING_PASS' %}Parking Pass{% else %}{{ entity.trantype }}{% endif %}", "${{ entity.amount + entity.servicechg }}","{% if entity.pmtmethod == "CREDIT_CARD" %}Credit Card / PayPal{% elseif entity.pmtmethod == "CHECK" %}Check{% else %}Other{% endif %}", "{% if show_luncheons is defined and show_luncheons %}{{ entity.luncheon }}{% endif %}"
{% endfor %}

{% autoescape false %}
Date, Type, Amount, Payment Method, Details, Notes
{% for entity in entities %}
"{{ entity.trandate|date('m-d-Y') }}","{% if entity.trantype == 'MEMBERSHIP_NEW' %}New Membership Fee{% elseif entity.trantype == 'MEMBERSHIP_RENEW' %}Renewal Fee{% elseif entity.trantype == 'LUNCHEON_FEE' %}Luncheon Fee{% elseif entity.trantype == 'PARKING_PASS' %}Parking Pass{% else %}{{ entity.trantype }}{% endif %}","${{ entity.amount + entity.servicechg }}","{% if entity.pmtmethod == "CREDIT_CARD" %}Credit Card / PayPal{% elseif entity.pmtmethod == "CHECK" %}Check{% else %}Other{% endif %}","{% if show_luncheons is defined and show_luncheons %}{{ entity.luncheon }}{% endif %}"
{% endfor %}
{% endautoescape %}

Fix escaping and quoting issues in transaction CSV export
Fix escaping and quoting issues in transaction CSV export

Signed-off-by: Max Fierke <d6155eedb22de5c70de66eb8f328a34bc1512075@umn.edu>
