Merge pull request #144 from foodcoop-adam/fix-closed-group_order-totals
fix closed group_order totals
This commit is contained in:
commit
2060261c89
2 changed files with 19 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ class GroupOrderArticle < ActiveRecord::Base
|
|||
# the minimum price depending on configuration. When the order is finished it
|
||||
# will be the value depending of the article results.
|
||||
def total_price(order_article = self.order_article)
|
||||
unless order_article.order.finished?
|
||||
if order_article.order.open?
|
||||
if FoodsoftConfig[:tolerance_is_costly]
|
||||
order_article.article.fc_price * (quantity + tolerance)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue