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