-
- {% if part.is_template == False %}
- {% include "qr_button.html" %}
- {% if part.active %}
-
- {% if part.purchaseable %}
-
- {% endif %}
- {% endif %}
- {% endif %}
-
-
- {% if not part.active %}
-
- {% endif %}
+
+
+
+ {% if part.is_template == False %}
+ {% include "qr_button.html" %}
+ {% if part.active %}
+
+ {% if not part.virtual %}
+
+ {% endif %}
+ {% if part.purchaseable %}
+
+ {% endif %}
+ {% endif %}
+ {% endif %}
+
+
+ {% if not part.active %}
+
+ {% endif %}
+
@@ -171,6 +178,16 @@
);
});
+ $("#part-count").click(function() {
+ launchModalForm("/stock/adjust/", {
+ data: {
+ action: "count",
+ part: {{ part.id }},
+ reload: true,
+ }
+ });
+ });
+
$("#price-button").click(function() {
launchModalForm(
"{% url 'part-pricing' part.id %}",
diff --git a/InvenTree/static/css/inventree.css b/InvenTree/static/css/inventree.css
index 1b9caaa891..28c304485b 100644
--- a/InvenTree/static/css/inventree.css
+++ b/InvenTree/static/css/inventree.css
@@ -23,11 +23,23 @@
}
.glyphicon-ok {
- color: #5f5;
+ color: #5C5;
+}
+
+.glyphicon-ok-circle {
+ color: #55c;
}
.glyphicon-remove {
- color: #f55;
+ color: #C55;
+}
+
+.glyphicon-trash {
+ color: #C55;
+}
+
+.glyphicon-plus {
+ color: #5C5;
}
/* CSS overrides for treeview */
diff --git a/InvenTree/static/script/inventree/bom.js b/InvenTree/static/script/inventree/bom.js
index 77dfbe740e..ac08237dea 100644
--- a/InvenTree/static/script/inventree/bom.js
+++ b/InvenTree/static/script/inventree/bom.js
@@ -189,8 +189,8 @@ function loadBomTable(table, options) {
if (options.editable) {
cols.push({
formatter: function(value, row, index, field) {
- var bEdit = "";
- var bDelt = "";
+ var bEdit = "";
+ var bDelt = "";
return "" + bEdit + bDelt + "
";
}
diff --git a/InvenTree/stock/templates/stock/item.html b/InvenTree/stock/templates/stock/item.html
index 02287d8669..35b4fcd9f1 100644
--- a/InvenTree/stock/templates/stock/item.html
+++ b/InvenTree/stock/templates/stock/item.html
@@ -16,6 +16,9 @@
+
@@ -27,7 +30,7 @@
@@ -124,7 +127,7 @@
{% if item.has_tracking_info %}
-
+
Stock Tracking Information
@@ -181,7 +184,7 @@
itemAdjust("move");
});
- $("#stock-stocktake").click(function() {
+ $("#stock-count").click(function() {
itemAdjust('count');
});
diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html
index 987d433104..d201f76f91 100644
--- a/InvenTree/stock/templates/stock/location.html
+++ b/InvenTree/stock/templates/stock/location.html
@@ -7,30 +7,31 @@
{% if location %}
{{ location.name }}
{{ location.description }}
-
-
- {% include "qr_button.html" %}
-
-
{% else %}
Stock
All stock items
{% endif %}
+
+
+
+ {% if location %}
+ {% include "qr_button.html" %}
+
+
+
+ {% endif %}
+
+
-
-
-
- {% if location %}
-
-
-
-
- {% endif %}
@@ -91,6 +92,18 @@
return false;
});
+ {% if location %}
+ $("#location-count").click(function() {
+ launchModalForm("/stock/adjust/", {
+ data: {
+ action: "count",
+ location: {{ location.id }},
+ reload: true,
+ }
+ });
+ });
+ {% endif %}
+
$('#show-qr-code').click(function() {
launchModalForm("{% url 'stock-location-qr' location.id %}",
{