Merge pull request 'Fix the warehouse diagrams on the dashboard' (#103) from fix/dashboard_warehouse_statistics into master

This commit is contained in:
CodeSteak 2020-06-21 00:02:50 +02:00
commit 53cdb20091
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@
fetch('./dashboardsummary')
.then(response => response.json())
.then(data => {
chart('warehouse', 'Lagerauslastung', data.map(d => d.todaysWarehouseCapacity),
chart('warehouse', 'Lagerauslastung', data.map(d => d.currentWarehouseCapacity * 100),
"%", data.map(g => g.created));
});
@ -170,7 +170,7 @@
fetch('./dashboardsummary')
.then(response => response.json())
.then(data => {
chart('warehouse-ef', 'Lagereffizienz', data.map(d => d.todaysWarehouseCapacity),
chart('warehouse-ef', 'Lagereffizienz', data.map(d => d.todaysWarehouseCapacity * 100),
"%", data.map(g => g.created));
});