Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14 from davidnorth/1-0-stable
Browse files Browse the repository at this point in the history
Fix that saving completed order would delete store credit adjustments
  • Loading branch information
schof committed May 11, 2012
2 parents a9e5143 + c49a9d2 commit 8826007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/spree/order_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Spree
# admin app when creating a new order from the admin console
# In that case, we create an order before assigning a user
before_save :process_store_credit, :if => "self.user.present? && @store_credit_amount"
after_save :ensure_sufficient_credit, :if => "self.user.present?"
after_save :ensure_sufficient_credit, :if => "self.user.present? && !self.completed?"

validates_with StoreCreditMinimumValidator

Expand Down

0 comments on commit 8826007

Please sign in to comment.