mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 11:10:54 +00:00
Report template currency updates (#4469)
* Move render_currency into helpers.py - Add duplicate tag to report.py - Add option for currency conversion (optional) * Update report templates - Use "render_currency" instead of including price_data template * Remove 'price_data.html' template entirely
This commit is contained in:
@ -195,7 +195,7 @@ src="{% static 'img/blank_image.png' %}"
|
||||
{% if tp == None %}
|
||||
<span class='badge bg-warning'>{% trans "Total cost could not be calculated" %}</span>
|
||||
{% else %}
|
||||
{% include "price_data.html" with price=tp %}
|
||||
{% render_currency tp currency=order.supplier.currency %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</td>
|
||||
|
@ -193,7 +193,7 @@ src="{% static 'img/blank_image.png' %}"
|
||||
{% if tp == None %}
|
||||
<span class='badge bg-warning'>{% trans "Total cost could not be calculated" %}</span>
|
||||
{% else %}
|
||||
{% include "price_data.html" with price=tp %}
|
||||
{% render_currency tp currency=order.customer.currency %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user