fix for bom-pricing chart not showing up

This commit is contained in:
Matthias 2021-07-02 16:44:25 +02:00
parent 5598f7fad1
commit 628e365c6a

View File

@ -385,6 +385,9 @@
}]
}
var StockPriceChart = loadStockPricingChart($('#StockPriceChart'), purchasepricedata)
{% endif %}
{% if bom_parts %}
var bom_colors = randomColor({hue: 'green', count: {{ bom_parts|length }} })
var bomdata = {
labels: [{% for line in bom_parts %}'{{ line.name }}',{% endfor %}],
@ -404,7 +407,6 @@
]
};
var BomChart = loadBomChart(document.getElementById('BomChart'), bomdata)
{% endif %}