{% load i18n static humanize %} {% load custom_filters %} {% block customCSS %} {% endblock customCSS %} {% for opportunity in opportunities %}
Opportunity for {{ opportunity.customer.customer_name }}
{% if opportunity.get_stage_display == "Negotiation" %} {{ opportunity.get_stage_display }} {% elif opportunity.get_stage_display == "Discovery" %} {{ opportunity.get_stage_display }} {% elif opportunity.get_stage_display == "Proposal" %} {{ opportunity.get_stage_display }} {% elif opportunity.get_stage_display == "Closed Won" %} {{ opportunity.get_stage_display }} {% elif opportunity.get_stage_display == "Closed Lost" %} {{ opportunity.get_stage_display }} {% endif %} {{ opportunity.get_status_display }}
 

{{ opportunity.created|naturalday|capfirst }}

{{ opportunity.staff.name }}

{{ CURRENCY }}

{{ _("Expected Revenue")}}

{{ CURRENCY }}{{ opportunity.expected_revenue }}

 

{{ _("Closing Date")}}

{{ opportunity.closing_date|naturalday|capfirst }}

{{ _("Probability") }}: {{ opportunity.probability }}%

{% if opportunity.probability >= 25 and opportunity.probability < 49 %}
{{ opportunity.probability }}
{% elif opportunity.probability >= 50 and opportunity.probability <= 74 %}
{{ opportunity.probability }}
{% elif opportunity.probability >= 75 and opportunity.probability <= 100 %}
{{ opportunity.probability }}
{% endif %}
{% endfor %}