Localization of item.quantity removed

Localization of quantity for different cultures(turkish in my case) using comma(,) instead of dot(.) leads syntax error in javascript code and prevents stock item history to load.
This commit is contained in:
Erkut Alakuş 2021-08-09 12:11:53 +03:00 committed by GitHub
parent 970d2ac1f8
commit c564896355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
{% load static %}
{% load inventree_extras %}
{% load i18n %}
{% load l10n %}
{% load markdownify %}
{% block menubar %}
@ -152,7 +153,7 @@
{
stock_item: {{ item.pk }},
part: {{ item.part.pk }},
quantity: {{ item.quantity }},
quantity: {{ item.quantity|unlocalize }},
}
);
@ -395,4 +396,4 @@
url: "{% url 'api-stock-tracking-list' %}",
});
{% endblock %}
{% endblock %}