Fixed order.close workflow. (formerly known as order.balance)
This commit is contained in:
parent
288566f000
commit
ec402ffa7b
4 changed files with 22 additions and 21 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue