Sha256: 1ee69639c902903c7c315cdeb5ba74eb14c58e343ffef0189ca3d418ff98760f

Contents?: true

Size: 629 Bytes

Versions: 15

Compression:

Stored size: 629 Bytes

Contents

module Comee
  module Core
    class CustomsDetail < ApplicationRecord
      belongs_to :sales_order

      def self.ransackable_attributes(_auth_object = nil)
        %w[id sales_order_id]
      end

      def self.ransackable_associations(_auth_object = nil)
        %w[sales_order]
      end

      validates :registration_type, :export_declaration_type, :participant_constellation, :mode_of_transport_type, :destination_country,
                :additional_identifier, :packaging_type, :export_customs_office, :customs_office_of_exit, :mode_of_transport,
                :delivery_term_code, presence: true
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
comee_core-0.3.1 app/models/comee/core/customs_detail.rb
comee_core-0.3.0 app/models/comee/core/customs_detail.rb
comee_core-0.2.99 app/models/comee/core/customs_detail.rb
comee_core-0.2.98 app/models/comee/core/customs_detail.rb
comee_core-0.2.97 app/models/comee/core/customs_detail.rb
comee_core-0.2.96 app/models/comee/core/customs_detail.rb
comee_core-0.2.95 app/models/comee/core/customs_detail.rb
comee_core-0.2.94 app/models/comee/core/customs_detail.rb
comee_core-0.2.93 app/models/comee/core/customs_detail.rb
comee_core-0.2.92 app/models/comee/core/customs_detail.rb
comee_core-0.2.91 app/models/comee/core/customs_detail.rb
comee_core-0.2.90 app/models/comee/core/customs_detail.rb
comee_core-0.2.89 app/models/comee/core/customs_detail.rb
comee_core-0.2.88 app/models/comee/core/customs_detail.rb
comee_core-0.2.87 app/models/comee/core/customs_detail.rb