class AdjustmentDetail < CommLogistics::Base::Model::Detail
  include Comm::Module::Model::Logging
  belongs_to :adjustment
  named_scope :child, lambda {|id| {:conditions => ["adjustment_id = ?", id]}}
  named_scope :with_parent, :joins => "INNER JOIN `adjustments` ON `adjustment_details`.`adjustment_id` = `adjustments`.`id`"
  class << columns_hash['ubd']
    def type
      :string
    end
  end
end
