Sha256: ea3436c8ed46407b639cdce22266629f65af138a8e05deb957df8a9c1213d749

Contents?: true

Size: 1.26 KB

Versions: 4

Compression:

Stored size: 1.26 KB

Contents

module Eddy
  module Elements
    # ### Element Summary:
    #
    # - Id: 378
    # - Name: Allowance/Charge Percent Qualifier
    # - Type: ID
    # - Min/Max: 1/1
    # - Description: Code indicating on what basis allowance or charge percent is calculated
    class E378 < Eddy::Models::Element::ID

      # @param val [String]
      # @param req [String]
      # @param ref [String]
      # @return [void]
      def initialize(val: nil, req: nil, ref: nil)
        @id = "378"
        @name = "Allowance/Charge Percent Qualifier"
        @description = "Code indicating on what basis allowance or charge percent is calculated"
        super(
          min: 1,
          max: 1,
          req: req,
          ref: ref,
          val: val,
        )
      end

      # @return [Array<String>]
      def code_list()
        return [
          "1", # Item List Cost
          "2", # Item Net Cost
          "3", # Discount/Gross
          "4", # Discount/Net
          "5", # Base Price per Unit
          "6", # Base Price Amount
          "7", # Base Price Amount Less Previous Discount
          "8", # Net Monthly On All Invoices Past Due
          "9", # Late Payment Charge Base Amount
          "A", # Fuel Rate
          "Z", # 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/378.allowance_charge_percent_qualifier.rb
eddy-0.9.2 lib/definitions/elements/generated/378.allowance_charge_percent_qualifier.rb
eddy-0.9.1 lib/definitions/elements/generated/378.allowance_charge_percent_qualifier.rb
eddy-0.9.0 lib/definitions/elements/generated/378.allowance_charge_percent_qualifier.rb