fixing currency display

This commit is contained in:
Matthias 2021-06-05 13:27:39 +02:00
parent d87592aedb
commit 691142ea4c
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,9 @@
{% extends "modal_form.html" %} {% extends "modal_form.html" %}
{% load i18n %} {% load i18n inventree_extras %}
{% block pre_form_content %} {% block pre_form_content %}
{% settings_value "INVENTREE_DEFAULT_CURRENCY" as currency %}
<table class='table table-striped table-condensed table-price-two'> <table class='table table-striped table-condensed table-price-two'>
<tr> <tr>
<td><b>{% trans 'Part' %}</b></td> <td><b>{% trans 'Part' %}</b></td>

View File

@ -1 +1,2 @@
{% if currency %}{{ currency.symbol }}{% endif %}{{ price }}{% if currency %} {{ currency.suffix }}{% endif %} {% load djmoney %}
{% money_localize price currency %}