Improved delivery-invoice-workflow.

This commit is contained in:
Benjamin Meichsner 2009-01-18 17:42:51 +01:00
parent 936e6ef69a
commit ff6b460cfc
28 changed files with 253 additions and 231 deletions

View file

@ -12,8 +12,11 @@
class Delivery < ActiveRecord::Base
belongs_to :supplier
has_one :invoice
has_many :stock_changes
named_scope :recent, :order => 'created_at DESC', :limit => 10
validates_presence_of :supplier_id
def stock_change_attributes=(stock_change_attributes)