Fixed bug order.profit calculation.
Order.profit will also be saved, when order is closed.
This commit is contained in:
parent
843e4a7233
commit
da08365816
32 changed files with 408 additions and 34 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# == Schema Information
|
||||
# Schema version: 20090120184410
|
||||
# Schema version: 20090317175355
|
||||
#
|
||||
# Table name: stock_changes
|
||||
#
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
# stock_article_id :integer
|
||||
# quantity :integer default(0)
|
||||
# created_at :datetime
|
||||
# stock_taking_id :integer
|
||||
#
|
||||
|
||||
class StockChange < ActiveRecord::Base
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue