Sha256: b3a3210b99058c3f876a369bde717f1ddfa98b21ab74033ed83a471c5581be18

Contents?: true

Size: 368 Bytes

Versions: 9

Compression:

Stored size: 368 Bytes

Contents

module Logistics
  module Core
    class EslTransportTariff < ApplicationRecord
      belongs_to :route
      has_many :esl_transport_tariff_rates
      validates :route, :storage_point, presence: true
      validates_uniqueness_of :route, :scope => :storage_point

      def name
        "#{self.route.route_name } (#{self.storage_point})"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 app/models/logistics/core/esl_transport_tariff.rb
logistics_core-21.11.1 app/models/logistics/core/esl_transport_tariff.rb
logistics_core-21.08.1 app/models/logistics/core/esl_transport_tariff.rb
logistics_core-21.03.1 app/models/logistics/core/esl_transport_tariff.rb
logistics_core-20.10.3 app/models/logistics/core/esl_transport_tariff.rb
logistics_core-20.10.2 app/models/logistics/core/esl_transport_tariff.rb
logistics_core-20.10.1 app/models/logistics/core/esl_transport_tariff.rb
logistics_core-20.9.1 app/models/logistics/core/esl_transport_tariff.rb
logistics_core-20.8.1 app/models/logistics/core/esl_transport_tariff.rb