Do not set quantity of newly created OrderArticles to 1
This commit is contained in:
parent
a384532619
commit
8e52fca304
6 changed files with 44 additions and 9 deletions
|
|
@ -208,7 +208,6 @@ class OrderArticle < ActiveRecord::Base
|
|||
def init_from_balancing
|
||||
if order.present? and order.finished?
|
||||
self.article_price = article.article_prices.first
|
||||
self.units_to_order = 1
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue