Fixed order.close workflow. (formerly known as order.balance)

This commit is contained in:
Benjamin Meichsner 2009-01-30 22:27:55 +01:00
parent 288566f000
commit ec402ffa7b
4 changed files with 22 additions and 21 deletions

View file

@ -30,7 +30,7 @@ class GroupOrder < ActiveRecord::Base
named_scope :finished, lambda { {:conditions => ["order_id IN (?)", Order.finished.collect{|o| o.id}]} }
# Updates the "price" attribute.
# This will be the maximum value of a current order
# This will be the maximum value of an order
def update_price!
total = 0
for article in group_order_articles.find(:all, :include => :order_article)