Skip to content

Commit

Permalink
add missing save.
Browse files Browse the repository at this point in the history
  • Loading branch information
saberma committed Aug 1, 2012
1 parent c1a94d9 commit 527b4b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/order.rb
Expand Up @@ -281,6 +281,7 @@ class OrderFulfillment < ActiveRecord::Base
end
fulfillment_status = (self.order.line_items.unshipped.size > 0) ? :partial : :fulfilled
self.order.fulfillment_status = fulfillment_status
self.order.save
self.order.histories.create body: "我们已经将#{line_items.size}个商品发货", url: order_fulfillment_path(self.order, self)
Resque.enqueue(ShopqiMailer::Ship, 'ship_confirm', self.id) if self.notify_customer == 'true' #当选中通知顾客时,发送邮件(不管有没有写运货单号)
end
Expand Down

0 comments on commit 527b4b5

Please sign in to comment.