Sha256: ae23b99d0659b55fee913795cfef23b528271ff6f164695993477b8e174a85c9

Contents?: true

Size: 1.96 KB

Versions: 4

Compression:

Stored size: 1.96 KB

Contents

module Eddy
  module Elements
    # ### Element Summary:
    #
    # - Id: 371
    # - Name: Change Reason Code
    # - Type: ID
    # - Min/Max: 2/2
    # - Description: Code specifying the reason for price or quantity change
    class E371 < Eddy::Models::Element::ID

      # @param val [String]
      # @param req [String]
      # @param ref [String]
      # @return [void]
      def initialize(val: nil, req: nil, ref: nil)
        @id = "371"
        @name = "Change Reason Code"
        @description = "Code specifying the reason for price or quantity change"
        super(
          min: 2,
          max: 2,
          req: req,
          ref: ref,
          val: val,
        )
      end

      # @return [Array<String>]
      def code_list()
        return [
          "AQ", # Alternate Quantity and Unit of Measure
          "BB", # Balancing Quantity
          "BD", # Blueprint Deviation
          "C1", # Transportation Limitations
          "C2", # Source Limitations
          "C3", # Contract Limitations
          "C4", # Destination Limitations
          "C5", # Confirmation Limitations
          "C6", # Other Limitations
          "DC", # Date Change
          "EV", # Estimated Quantity
          "FE", # Feasibility Issue
          "GU", # Gross Volume per Pack and Unit of Measure
          "GW", # Gross Weight per Pack
          "LD", # Length Difference
          "MC", # Pack/Size Measure Difference
          "MP", # Minimum Order
          "PC", # Pack Difference
          "PQ", # Pack Qualifier
          "PS", # Product/Services ID Change
          "QH", # Quantity on Hand
          "QO", # Quantity Ordered
          "QP", # Quantity Based on Price Qualifier
          "QT", # Quantity Price Break
          "SC", # Size Difference
          "UM", # Unit of Measure Difference
          "UP", # Unit Price
          "WD", # Width Difference
          "WO", # Weight Qualifier/Gross Weight per Package
          "ZZ", # Mutually Defined
        ]
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.10.0 lib/definitions/elements/generated/371.change_reason_code.rb
eddy-0.9.2 lib/definitions/elements/generated/371.change_reason_code.rb
eddy-0.9.1 lib/definitions/elements/generated/371.change_reason_code.rb
eddy-0.9.0 lib/definitions/elements/generated/371.change_reason_code.rb