show stock history starting by 1 element

This commit is contained in:
Matthias 2021-06-20 20:17:01 +02:00
parent b32a6b50d2
commit 59aae51652

View File

@ -137,7 +137,7 @@
<hr>
<h4>{% trans 'Stock Pricing' %}<i class="fas fa-info-circle" title="Shows the purchase prices of stock for this part.
The part single price is the current purchase price for that supplier part."></i></h4>
{% if price_history|length > 1 %}
{% if price_history|length > 0 %}
<div style="max-width: 99%; min-height: 300px">
<canvas id="StockPriceChart"></canvas>
</div>