naming refactor

This commit is contained in:
Matthias 2021-06-27 20:46:52 +02:00
parent ef07c93634
commit f479c0cd27

View File

@ -293,6 +293,8 @@
{% block js_ready %}
{{ block.super }}
{% default_currency as currency %}
loadSupplierPartTable(
"#supplier-table",
@ -321,9 +323,8 @@
// history graphs
{% default_currency as currency %}
{% if price_history %}
var pricedata = {
var purchasepricedata = {
labels: [
{% for line in price_history %}'{{ line.date }}',{% endfor %}
],
@ -375,7 +376,7 @@
borderWidth: 1
}]
}
var StockPriceChart = loadStockPricingChart($('#StockPriceChart'), pricedata)
var StockPriceChart = loadStockPricingChart($('#StockPriceChart'), purchasepricedata)
var bom_colors = randomColor({hue: 'green', count: {{ bom_parts|length }} })
var bomdata = {
labels: [{% for line in bom_parts %}'{{ line.name }}',{% endfor %}],