mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Merge pull request #2506 from ldet/fix-localize
Dont localize item.quantity in JS Code
This commit is contained in:
		@@ -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 %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user