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,3 +1,14 @@
|
|||
# == Schema Information
|
||||
# Schema version: 20090317175355
|
||||
#
|
||||
# Table name: stock_takings
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# date :date
|
||||
# note :text
|
||||
# created_at :datetime
|
||||
#
|
||||
|
||||
class StockTaking < ActiveRecord::Base
|
||||
|
||||
has_many :stock_changes, :dependent => :destroy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue