{% extends 'oscar/dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% load oscarbluelight_tags %} {% block title %} {% trans "Prices" %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block header %} {% endblock header %} {% block dashboard_content %}

{% blocktrans with name=range.name %}Adjust Prices for Products in {{ name }}{% endblocktrans %}

{% csrf_token %} {% include "oscar/dashboard/partials/form_fields_inline.html" with form=form %} {% if preview %} {% trans "Clear" %} {% endif %}
{% with products=range.all_products %} {% if products.count > 0 %} {% for product in products.all %} {% if product.children.count %} {% for child in product.children.all %} {% for sr in child.stockrecords.all %} {% endfor %} {% endfor %} {% else %} {% for sr in product.stockrecords.all %} {% endfor %} {% endif %} {% endfor %} {% else %} {% endif %} {% endwith %}
{% trans "Product Prices" %}
{% trans "Product Name" %} {% trans "Variant Name" %} {% trans "Partner Name" %} {% trans "SKU" %} {% trans "Retail Price" %} {% trans "Price Excluding Tax" %} {% trans "Price Differential" %}
{{ product.get_title }}
{{ child.get_title }} {{ sr.partner.name }} {{ sr.partner_sku }} {{ sr.price_retail | currency:sr.price_currency }} {% if preview %} {{ sr.price_excl_tax | currency:sr.price_currency }} {{ changes | get_item:sr.id | get_item:'price' | currency:sr.price_currency }} {% else %} {{ sr.price_excl_tax | currency:sr.price_currency }} {% endif %} {% if preview %} {{ changes | get_item:sr.id | get_item:'difference' | currency:sr.price_currency }} {{ changes | get_item:sr.id | get_item:'direction' }} {% endif %}
{{ product.get_title }}
{% trans "Product is Standalone" %} {{ sr.partner.name }} {{ sr.partner_sku }} {{ sr.price_retail | currency:sr.price_currency }} {% if preview %} {{ sr.price_excl_tax | currency:sr.price_currency }} {{ changes | get_item:sr.id | get_item:'price' | currency:sr.price_currency }} {% else %} {{ sr.price_excl_tax | currency:sr.price_currency }} {% endif %} {% if preview %} {{ changes | get_item:sr.id | get_item:'difference' | currency:sr.price_currency }} {{ changes | get_item:sr.id | get_item:'direction' }} {% endif %}
{% trans "No products found." %}
{% endblock dashboard_content %} {% block extrastyles %} {{ block.super }} {% endblock %}