app/models/distribution.rb
# Distributions are issued from a single storage location, so we associate
# them so that on-hand amounts can be verified
Distributions are issued from a single storage location, so we associate
them so that on-hand amounts can be verified
Distributions are issued from a single storage location so we associate them so that on - hand amounts can be verified
def issued_at_end_is_after_issued_at
    if issued_at_timeframe_enabled
      start_time = issued_at
      end_time = issued_at_end
      if issued_at > issued_at_end
        errors.add(:issued_at_end, "can't be before issued at")
      end
    end
  end
def issued_at_end_is_after_issued_at if issued_at_timeframe_enabled start_time = issued_at end_time = issued_at_end if issued_at > issued_at_end errors . add ( :issued_at_end , "can't be before issued at" ) end end end
Distributions are issued from a single storage location, so we associate
them so that on-hand amounts can be verified
Distributions are issued from a single storage location so we associate them so that on - hand amounts can be verified