{% load i18n static humanize %} {% load custom_filters %} {% block customCSS %} {% endblock customCSS %} {% for opportunity in opportunities %}
{% if opportunity.car.id_car_make.logo %} {% endif %}
{% if opportunity.customer %}
{% trans "Opportunity for" %} {{ opportunity.customer }}
{% elif opportunity.organization %}
{% trans "Opportunity for" %} {{ opportunity.organization }}
{% endif %}
{% if opportunity.stage == "qualification" %} {% elif opportunity.stage == "test_drive" %} {% elif opportunity.stage == "quotation" %} {% elif opportunity.stage == "negotiation" %} {% elif opportunity.stage == "financing" %} {% elif opportunity.stage == "closed_won" %} {% elif opportunity.stage == "closed_lost" %} {% elif opportunity.stage == "on_hold" %} {% endif %} {{ opportunity.stage }} {{ opportunity.get_status_display }}
 

{{ opportunity.created|naturalday|capfirst }}

{{ _("Assigned To") }} {% if request.user.email == opportunity.staff.email %} {{ _("You") }} {% else %} {{ opportunity.staff.fullname }}

{% endif %}
{% comment %} {% endcomment %}

{{ _("Expected Revenue") }}

{{ opportunity.expected_revenue }}

{% trans "Marked Price" %}

{{ opportunity.car.marked_price }}

 

{{ _("Closing Date") }}

{% if opportunity.expected_close_date %}

{{ opportunity.expected_close_date|naturalday|capfirst }}

{% endif %}

{{ _("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 %}
{% if perms.inventory.view_opportunity %} {{ _("View") }} {% endif %} {% if perms.inventory.change_opportunity %} {{ _("Update") }} {% endif %}
{% endfor %}