Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove debug data

Anna Siwik5e551a0df07f
diff --git a/templates/account/details.html b/templates/account/details.html
index 06401b6906..c1fc166060 100644
--- a/templates/account/details.html
+++ b/templates/account/details.html
@@ -4,7 +4,6 @@
{% load i18n %}
{% load i18n_address_tags %}
{% load price from taxed_prices %}
-{% load prices_i18n %}
{% load staticfiles %}
{% load status %}
@@ -79,8 +78,6 @@
<span class="float-right">
{% price order.total.gross %}
</span>
- <br>
- ({{ order.total.net|amount:'html' }} + {{ order.total.tax|amount:'html' }} VAT)
</div>
<div class="col-md-4 d-none d-md-block">
{% render_order_status order.status order.get_status_display %}
diff --git a/templates/cart/_subtotal_table.html b/templates/cart/_subtotal_table.html
index ba22a95b56..848b110d5e 100644
--- a/templates/cart/_subtotal_table.html
+++ b/templates/cart/_subtotal_table.html
@@ -1,6 +1,4 @@
{% load i18n %}
-{% load price from taxed_prices %}
-{% load prices_i18n %}
{% load taxed_prices %}
{% if shipping_required %}
@@ -13,10 +11,6 @@
<h3 class="text-right cart-subtotal" data-value="{% price cart_total.gross html=False %}" {% if local_cart_total is not None %}data-value-local="{% price local_cart_total.gross html=False %}"{% endif %}>
{% spaceless %}
{% price cart_total %}
- <br>
- <small>
- ({{ cart_total.net|amount:'html' }} + {{ cart_total.tax|amount:'html' }} VAT)
- </small>
{% if local_cart_total is not None and local_cart_total.gross %}
<br>
<small>
diff --git a/templates/cart/index.html b/templates/cart/index.html
index 510b04334d..18f7ac6d08 100644
--- a/templates/cart/index.html
+++ b/templates/cart/index.html
@@ -1,9 +1,8 @@
{% extends "base.html" %}
{% load i18n %}
-{% load get_thumbnail from product_images %}cart
-{% load prices_i18n %}
-{% load staticfiles %}
+{% load get_thumbnail from product_images %}
{% load price from taxed_prices %}
+{% load staticfiles %}
{% block title %}{% trans "Your cart" context "Cart page title" %} — {{ block.super }}{% endblock %}
@@ -67,9 +66,6 @@
<p class="text-right">
{% price line.get_total %}
</p>
- <p class="small text-right">
- ({{ line.get_total.net|amount:'html' }} + {{ line.get_total.tax|amount:'html' }} VAT)
- </p>
</div>
</div>
</div>
diff --git a/templates/cart_dropdown.html b/templates/cart_dropdown.html
index d6d3d9bafa..c966ea9dc7 100644
--- a/templates/cart_dropdown.html
+++ b/templates/cart_dropdown.html
@@ -1,9 +1,8 @@
{% load i18n %}
{% load get_thumbnail from product_images %}
{% load placeholder %}
-{% load prices_i18n %}
-{% load staticfiles %}
{% load price from taxed_prices %}
+{% load staticfiles %}
<div class="container">
{% if quantity > 0 %}
@@ -20,7 +19,7 @@
<h3>
{{ line.product }}
<span>x{{ line.quantity }}</span>
- <p>{{ line.variant }} ({{ line.line_total.net|amount:'html' }} + {{ line.line_total.tax|amount:'html' }} VAT)</p>
+ <p>{{ line.variant }}</p>
</h3>
</a>
</div>
@@ -48,11 +47,6 @@
</p>
</h3>
</div>
- <div class="col-md-12">
- <div class="small text-right">
- ({{ total.net|amount:'html' }} + {{ total.tax|amount:'html' }} VAT)
- </div>
- </div>
</div>
<div class="row cart-dropdown__actions">
<div class="col-md-1"></div>
diff --git a/templates/checkout/details.html b/templates/checkout/details.html
index 4ed502fa0c..56bf82a1bc 100644
--- a/templates/checkout/details.html
+++ b/templates/checkout/details.html
@@ -2,7 +2,6 @@
{% load i18n %}
{% load price from taxed_prices %}
-{% load prices_i18n %}
{% load staticfiles %}
{% block title %}{% trans "Checkout" context "Checkout page title" %} — {{ block.super }}{% endblock %}
@@ -43,11 +42,6 @@
{% price line_total %}
</p>
</div>
- <div class="col-12">
- <p class="small text-right">
- ({{ line_total.net|amount:'html' }} + {{ line_total.tax|amount:'html' }} VAT)
- </p>
- </div>
</div>
{% endfor %}
<div class="row checkout__review__section">
@@ -59,11 +53,6 @@
{% price checkout.get_subtotal %}
</p>
</div>
- <div class="col-12">
- <p class="small text-right">
- ({{ checkout.get_subtotal.net|amount:'html' }} + {{ checkout.get_subtotal.tax|amount:'html' }} VAT)
- </p>
- </div>
</div>
<div class="row checkout__review__section">
<div class="col-8">
@@ -78,11 +67,6 @@
{% endif %}
</p>
</div>
- <div class="col-12">
- <p class="small text-right">
- ({{ checkout.shipping_price.net|amount:'html' }} + {{ checkout.shipping_price.tax|amount:'html' }} VAT)
- </p>
- </div>
</div>
{% with total=checkout.get_total %}
<div class="row checkout__review__section">
@@ -110,11 +94,6 @@
<div class="col-4">
<h3 class="float-right">{% price total.gross %}</h3>
</div>
- <div class="col-md-12">
- <p class="small text-right">
- ({{ total.net|amount:'html' }} + {{ total.tax|amount:'html' }} VAT)
- </p>
- </div>
</div>
{% endwith %}
</div>
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.html
index b54e95a3e5..2be0a8b01b 100644
--- a/templates/dashboard/order/detail.html
+++ b/templates/dashboard/order/detail.html
@@ -3,10 +3,9 @@
{% load i18n %}
{% load i18n_address_tags %}
{% load materializecss %}
-{% load prices_i18n %}
+{% load price from taxed_prices %}
{% load staticfiles %}
{% load status %}
-{% load price from taxed_prices %}
{% load voucher %}
{% block title %}
@@ -283,18 +282,12 @@
<th class="wide">
{% trans "Item" context "Order table header" %}
</th>
- <th class="right-align">
- {% trans "Price (debug)" context "Order table header" %}
- </th>
<th class="right-align">
{% trans "Price" context "Order table header" %}
</th>
<th class="right-align">
{% trans "Quantity" context "Order table header" %}
</th>
- <th class="right-align">
- {% trans "Total (debug)" context "Order table header" %}
- </th>
<th class="right-align">
{% trans "Total" context "Order table header" %}
</th>
@@ -316,9 +309,6 @@
{% endblocktrans %}
</span>
</td>
- <td class="right-align">
- ({{ line.unit_price.net|amount:'html' }} + {{ line.unit_price.tax|amount:'html' }} VAT)
- </td>
<td class="right-align">
{% price line.unit_price order.display_gross_prices %}
</td>
@@ -344,20 +334,16 @@
{{ line.quantity }}
{% endif %}
</td>
- <td class="right-align">
- ({{ line.get_total.net|amount:'html' }} + {{ line.get_total.tax|amount:'html' }} VAT)
- </td>
<td class="right-align">
{% price line.get_total display_gross=order.display_gross_prices %}
</td>
</tr>
{% endfor %}
<tr class="last-no-border">
- <td class="right-align" colspan="5">
+ <td class="right-align" colspan="3">
<p>
{% trans "Subtotal" context "Order subtotal" %}
</p>
- <p>debug</p>
<p>
{% if perms.order.edit_order and order.is_draft %}
<a href="#base-modal" data-href="{% url 'dashboard:order-shipping-edit' order_pk=order.pk %}"
@@ -380,7 +366,6 @@
{% endif %}
{% endif %}
</p>
- <p>debug</p>
<p>
{% if order.display_gross_prices %}
{% trans "Taxes (included)" context "Order total taxes" %}
@@ -427,29 +412,19 @@
</p>
{% endif %}
<p><strong>{% trans "Grand total" context "Order totals header" %}</strong></p>
- <p><strong>debug</strong></p>
</td>
<td class="right-align">
<p>
{% price order.get_subtotal display_gross=order.display_gross_prices %}
</p>
- <p>
- ({{ order.get_subtotal.net|amount:'html' }} + {{ order.get_subtotal.tax|amount:'html' }} VAT)
- </p>
<p>
{% price order.shipping_price display_gross=order.display_gross_prices %}
</p>
- <p>
- ({{ order.shipping_price.net|amount:'html' }} + {{ order.shipping_price.tax|amount:'html' }} VAT)
- </p>
<p>{% price order.total.tax %}</p>
{% if order.is_draft or order.discount_amount %}
<p>{% discount_as_negative order.discount_amount html=True %}</p>
{% endif %}
<p><strong>{% price order.total.gross %}</strong></p>
- <p>
- <strong>({{ order.total.net|amount:'html' }} + {{ order.total.tax|amount:'html' }} VAT)</strong>
- </p>
</td>
</tr>
</tbody>
diff --git a/templates/dashboard/order/list.html b/templates/dashboard/order/list.html
index 034401d974..c7eed4a9f7 100644
--- a/templates/dashboard/order/list.html
+++ b/templates/dashboard/order/list.html
@@ -54,9 +54,6 @@
{% trans "Payment status" context "Orders table header" as label %}
{% sorting_header 'payment_status' label %}
- {% trans "Total (debug)" context "Orders table header" as label %}
- {% sorting_header 'total_debug' label %}
-
{% trans "Total" context "Orders table header" as label %}
{% sorting_header 'total' label %}
</tr>
@@ -80,9 +77,6 @@
<td>
{% render_status order.get_last_payment_status order.get_last_payment_status_display %}
</td>
- <td class="right-align">
- ({{ order.total.net|amount:'html' }} + {{ order.total.tax|amount:'html' }} VAT)
- </td>
<td class="right-align">
{% price order.total.gross %}
</td>
diff --git a/templates/order/_ordered_items_table.html b/templates/order/_ordered_items_table.html
index 103fc5141b..c53aff1eaa 100644
--- a/templates/order/_ordered_items_table.html
+++ b/templates/order/_ordered_items_table.html
@@ -1,4 +1,3 @@
-{% load amount from prices_i18n %}
{% load discount_as_negative from voucher %}
{% load i18n %}
{% load i18n_address_tags %}
@@ -67,9 +66,6 @@
<p class="float-right">
{% price line.get_total display_gross=order.display_gross_prices %}
</p>
- <p class="float-right">
- ({{ line.get_total.net|amount:'html' }} + {{ line.get_total.tax|amount:'html' }} VAT)
- </p>
</div>
</div>
</div>
@@ -89,9 +85,6 @@
{% price order.get_subtotal display_gross=order.display_gross_prices %}
</p>
<br>
- <p class="float-right">
- ({{ order.get_subtotal.net|amount:'html' }} + {{ order.get_subtotal.tax|amount:'html' }} VAT)
- </p>
</div>
</div>
</div>
@@ -108,10 +101,6 @@
<p class="float-right">
{% price order.shipping_price display_gross=order.display_gross_prices %}
</p>
- <br>
- <p class="float-right">
- ({{ order.shipping_price.net|amount:'html' }} + {{ order.shipping_price.tax|amount:'html' }} VAT)
- </p>
</div>
</div>
</div>
@@ -159,8 +148,6 @@
<div class="col-4">
<p class="float-right">
{% price order.total.gross %}
- <br>
- ({{ order.total.net|amount:'html' }} + {{ order.total.tax|amount:'html' }} VAT)
</p>
</div>
</div>
diff --git a/templates/product/_price_range.html b/templates/product/_price_range.html
index 818fffd835..4b60966bdc 100644
--- a/templates/product/_price_range.html
+++ b/templates/product/_price_range.html
@@ -10,7 +10,4 @@
{{ price_range.start.net|amount:'html' }}
{% endif %}
</span>
- <div class="small">
- ({{ price_range.start.net|amount:'html' }} + {{ price_range.start.tax|amount:'html' }} VAT)
- </div>
</span>