diff --git a/app/models/stock_article.rb b/app/models/stock_article.rb index b92a3b33..c3da8405 100644 --- a/app/models/stock_article.rb +++ b/app/models/stock_article.rb @@ -54,4 +54,9 @@ class StockArticle < Article def check_quantity raise "#{name} kann nicht gelöscht werden. Der Lagerbestand ist nicht null." unless quantity == 0 end + + # Overwrite Price history of Article. For StockArticles isn't it necessary. + def update_price_history + true + end end