{% extends 'base.html' %} {% load static %} {% block title %}Complete Price List{% endblock %} {% block extra_js %} {% endblock %} {% block content %}

Complete Price List - All Service Variants

Filters
Clear Filters
{% if filter_cloud_provider or filter_service or filter_compute_plan_group or filter_service_level %}
Active Filters: {% if filter_cloud_provider %}Cloud Provider: {{ filter_cloud_provider }}{% endif %} {% if filter_service %}Service: {{ filter_service }}{% endif %} {% if filter_compute_plan_group %}Group: {{ filter_compute_plan_group }}{% endif %} {% if filter_service_level %}Service Level: {{ filter_service_level }}{% endif %}
{% endif %} {% if pricing_data_by_group_and_service_level %} {% for group_name, service_levels in pricing_data_by_group_and_service_level.items %}

{{ group_name }}

{# Display group description and node_label from first available plan #} {% for service_level, pricing_data in service_levels.items %} {% if pricing_data and forloop.first %} {% with pricing_data.0 as representative_plan %} {% if representative_plan.compute_plan_group_description %}

Description: {{ representative_plan.compute_plan_group_description }}

{% endif %} {% if representative_plan.compute_plan_group_node_label %}

Node Label: {{ representative_plan.compute_plan_group_node_label }}

{% endif %} {# Display storage pricing for this cloud provider #} {% if representative_plan.storage_plans %}

Storage Options:

{% for storage_plan in representative_plan.storage_plans %} {% endfor %}
Storage Plan Term Unit Prices
{{ storage_plan.name }} {{ storage_plan.get_term_display }} {{ storage_plan.get_unit_display }} {% for price in storage_plan.prices.all %} {{ price.amount }} {{ price.currency }} {% empty %} No prices {% endfor %}
{% endif %} {% endwith %} {% endif %} {% endfor %} {% for service_level, pricing_data in service_levels.items %}

SLA: {{ service_level }}

{% if pricing_data %} {# Display common values for this service level #} {% with pricing_data.0 as first_row %}
Cloud Provider: {{ first_row.cloud_provider }}
Service: {{ first_row.service }}
CPU/Memory Ratio: {{ first_row.cpu_mem_ratio }}
Variable Unit: {{ first_row.variable_unit }}
Replica Enforce: {{ first_row.replica_enforce }}
{% endwith %}
{% if show_discount_details %} {% endif %} {% if show_price_comparison %} {% endif %} {% for row in pricing_data %} {% if show_discount_details %} {% endif %} {% if show_price_comparison %} {% endif %} {% if show_price_comparison and row.external_comparisons %} {% for comparison in row.external_comparisons %} {% if show_discount_details %} {% endif %} {% endfor %} {% endif %} {% endfor %}
Compute Plan Cloud Provider vCPUs RAM (GB) Term Currency Compute Plan Price Units SLA Base SLA Per Unit SLA PriceDiscount Model Discount DetailsExternal ComparisonsFinal Price
{{ row.compute_plan }} {{ row.cloud_provider }} {{ row.vcpus }} {{ row.ram }} {{ row.term }} {{ row.currency }} {{ row.compute_plan_price|floatformat:2 }} {{ row.units }} {{ row.sla_base|floatformat:2 }} {{ row.sla_per_unit|floatformat:4 }} {{ row.sla_price|floatformat:2 }} {% if row.has_discount %} {{ row.discount_model }} {% else %} None {% endif %} {% if row.has_discount %} Total Units: {{ row.total_units }}
Standard Price: {{ row.standard_sla_price|floatformat:2 }}
Discounted Price: {{ row.discounted_sla_price|floatformat:2 }}
Savings: {{ row.discount_savings|floatformat:2 }} ({{ row.discount_percentage|floatformat:1 }}%)
{% if row.discount_breakdown %} Breakdown:
{% for tier in row.discount_breakdown %} {{ tier.tier_range }} units: {{ tier.units }} × {{ tier.rate|floatformat:4 }} = {{ tier.subtotal|floatformat:2 }}
{% endfor %} {% endif %}
{% else %} No discount applied {% endif %}
- {{ row.final_price|floatformat:2 }}
{{ comparison.plan_name }} {{ comparison.provider }} {% if comparison.vcpus %}{{ comparison.vcpus }}{% else %}-{% endif %} {% if comparison.ram %}{{ comparison.ram }}{% else %}-{% endif %} {{ row.term }} {{ comparison.currency }} - - - - -- - {% if comparison.source %}{{ comparison.provider }}{% else %}{{ comparison.provider }}{% endif %}
{% if comparison.description %} {{ comparison.description }}
{% endif %} {% if comparison.storage %} Storage: {{ comparison.storage }} GB
{% endif %} {% if comparison.replicas %} Replicas: {{ comparison.replicas }}
{% endif %} {% if comparison.ratio %} Price ratio: {{ comparison.ratio|floatformat:2 }}x
{% endif %}
{{ comparison.amount|floatformat:2 }} {{ comparison.currency }} {% if comparison.difference > 0 %} +{{ comparison.difference|floatformat:2 }} {% elif comparison.difference < 0 %} {{ comparison.difference|floatformat:2 }} {% endif %}
{# Price Chart #}
Price Chart - Units vs Final Price

{{ pricing_data|length }} variants for {{ service_level }} in {{ group_name }}

{% else %}

No pricing variants available for {{ service_level }} in {{ group_name }}.

{% endif %}
{% empty %}

No service levels with pricing data found for group: {{ group_name }}.

{% endfor %}
{% endfor %} {% else %}

No pricing data available

{% if filter_cloud_provider or filter_service or filter_compute_plan_group or filter_service_level %}No data matches the selected filters. Try adjusting your filter criteria.{% else %}Please ensure you have active compute plans with prices and VSHNAppCat price configurations.{% endif %}

{% endif %}
{% endblock %}