Merge pull request #2506 from ldet/fix-localize

Dont localize item.quantity in JS Code
This commit is contained in:
Oliver 2022-01-06 14:39:25 +11:00 committed by GitHub
commit d4410a11ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
{% load inventree_extras %} {% load inventree_extras %}
{% load status_codes %} {% load status_codes %}
{% load i18n %} {% load i18n %}
{% load l10n %}
{% block page_title %} {% block page_title %}
{% inventree_title %} | {% trans "Stock Item" %} - {{ item }} {% inventree_title %} | {% trans "Stock Item" %} - {{ item }}
@ -429,7 +430,7 @@ $("#stock-serialize").click(function() {
part: {{ item.part.pk }}, part: {{ item.part.pk }},
reload: true, reload: true,
data: { data: {
quantity: {{ item.quantity }}, quantity: {{ item.quantity|unlocalize }},
{% if item.location %} {% if item.location %}
destination: {{ item.location.pk }}, destination: {{ item.location.pk }},
{% elif item.part.default_location %} {% elif item.part.default_location %}