mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2506 from ldet/fix-localize
Dont localize item.quantity in JS Code
This commit is contained in:
commit
d4410a11ca
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user