mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Float parsing on StockItem tracking page
This commit is contained in:
parent
53d1040875
commit
265ed5115a
@ -385,6 +385,9 @@ function loadStockTrackingTable(table, options) {
|
|||||||
cols.push({
|
cols.push({
|
||||||
field: 'quantity',
|
field: 'quantity',
|
||||||
title: 'Quantity',
|
title: 'Quantity',
|
||||||
|
formatter: function(value, row, index, field) {
|
||||||
|
return parseFloat(value);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
cols.push({
|
cols.push({
|
||||||
|
@ -35,7 +35,9 @@
|
|||||||
<hr>
|
<hr>
|
||||||
<div class='panel panel-default'>
|
<div class='panel panel-default'>
|
||||||
<div class='panel-content'>
|
<div class='panel-content'>
|
||||||
|
{% if item.notes %}
|
||||||
{{ item.notes | markdownify }}
|
{{ item.notes | markdownify }}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
{% extends "stock/stock_app_base.html" %}
|
|
||||||
{% load static %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<h3>Stock list here!</h3>
|
|
||||||
|
|
||||||
<table class='table table-striped table-condensed' data-toolbar='#button-toolbar' id='tracking-table'>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block js_ready %}
|
|
||||||
{{ block.super }}
|
|
||||||
|
|
||||||
loadStockTrackingTable($("#tracking-table"), {
|
|
||||||
params: function(p) {
|
|
||||||
return {
|
|
||||||
ordering: '-date',
|
|
||||||
};
|
|
||||||
},
|
|
||||||
partColumn: true,
|
|
||||||
url: "{% url 'api-stock-track' %}",
|
|
||||||
});
|
|
||||||
|
|
||||||
{% endblock %}
|
|
Loading…
Reference in New Issue
Block a user