class Eddy::Segments::ITD

### Segment Summary:

Public Class Methods

new(store) click to toggle source

@param store [Eddy::Data::Store] @return [void]

Calls superclass method Eddy::Models::Segment::new
# File lib/definitions/segments/generated/itd.rb, line 12
def initialize(store)
  @id = "ITD"
  @name = "Terms of Sale/Deferred Terms of Sale"
  @itd01 = Eddy::Elements::E336.new(ref: "ITD01", req: "O")
  @itd02 = Eddy::Elements::E333.new(ref: "ITD02", req: "O")
  @itd03 = Eddy::Elements::E338.new(ref: "ITD03", req: "O")
  @itd04 = Eddy::Elements::E370.new(ref: "ITD04", req: "X")
  @itd05 = Eddy::Elements::E351.new(ref: "ITD05", req: "X")
  @itd06 = Eddy::Elements::E446.new(ref: "ITD06", req: "O")
  @itd07 = Eddy::Elements::E386.new(ref: "ITD07", req: "O")
  @itd12 = Eddy::Elements::E352.new(ref: "ITD12", req: "O")
  super(
    store,
    @itd01,
    @itd02,
    @itd03,
    @itd04,
    @itd05,
    @itd06,
    @itd07,
    @itd12,
  )
end

Public Instance Methods

Description=(arg)
Alias for: ITD12=
ITD01=(arg) click to toggle source

### ITD01

  • Id: 336

  • Name: Terms Type Code

  • Type: ID

  • Min/Max: 2/2

  • Description: Code identifying type of payment terms

@param arg [String] @return [void]

# File lib/definitions/segments/generated/itd.rb, line 46
def ITD01=(arg)
  @itd01.value = arg
end
Also aliased as: TermsTypeCode=
ITD02=(arg) click to toggle source

### ITD02

  • Id: 333

  • Name: Terms Basis Date Code

  • Type: ID

  • Min/Max: 1/2

  • Description: Code identifying the beginning of the terms period

@param arg [String] @return [void]

# File lib/definitions/segments/generated/itd.rb, line 61
def ITD02=(arg)
  @itd02.value = arg
end
Also aliased as: TermsBasisDateCode=
ITD03=(arg) click to toggle source

### ITD03

  • Id: 338

  • Name: Terms Discount Percent

  • Type: R

  • Min/Max: 1/6

  • Description: Terms discount percentage, expressed as a percent, available to the purchaser if an invoice is paid on or before the Terms Discount Due Date

@param arg [Float] @return [void]

# File lib/definitions/segments/generated/itd.rb, line 76
def ITD03=(arg)
  @itd03.value = arg
end
Also aliased as: TermsDiscountPercent=
ITD04=(arg) click to toggle source

### ITD04

  • Id: 370

  • Name: Terms Discount Due Date

  • Type: DT

  • Min/Max: 8/8

  • Description: Date payment is due if discount is to be earned expressed in format CCYYMMDD

@param arg [Time] @return [void]

# File lib/definitions/segments/generated/itd.rb, line 91
def ITD04=(arg)
  @itd04.value = arg
end
Also aliased as: TermsDiscountDueDate=
ITD05=(arg) click to toggle source

### ITD05

  • Id: 351

  • Name: Terms Discount Days Due

  • Type: N0

  • Min/Max: 1/3

  • Description: Number of days in the terms discount period by which payment is due if terms discount is earned

@param arg [Integer] @return [void]

# File lib/definitions/segments/generated/itd.rb, line 106
def ITD05=(arg)
  @itd05.value = arg
end
Also aliased as: TermsDiscountDaysDue=
ITD06=(arg) click to toggle source

### ITD06

  • Id: 446

  • Name: Terms Net Due Date

  • Type: DT

  • Min/Max: 8/8

  • Description: Date when total invoice amount becomes due expressed in format CCYYMMDD

@param arg [Time] @return [void]

# File lib/definitions/segments/generated/itd.rb, line 121
def ITD06=(arg)
  @itd06.value = arg
end
Also aliased as: TermsNetDueDate=
ITD07=(arg) click to toggle source

### ITD07

  • Id: 386

  • Name: Terms Net Days

  • Type: N0

  • Min/Max: 1/3

  • Description: Number of days until total invoice amount is due (discount not applicable)

@param arg [Integer] @return [void]

# File lib/definitions/segments/generated/itd.rb, line 136
def ITD07=(arg)
  @itd07.value = arg
end
Also aliased as: TermsNetDays=
ITD12=(arg) click to toggle source

### ITD12

  • Id: 352

  • Name: Description

  • Type: AN

  • Min/Max: 1/80

  • Description: A free-form description to clarify the related data elements and their content

@param arg [String] @return [void]

# File lib/definitions/segments/generated/itd.rb, line 151
def ITD12=(arg)
  @itd12.value = arg
end
Also aliased as: Description=
TermsBasisDateCode=(arg)
Alias for: ITD02=
TermsDiscountDaysDue=(arg)
Alias for: ITD05=
TermsDiscountDueDate=(arg)
Alias for: ITD04=
TermsDiscountPercent=(arg)
Alias for: ITD03=
TermsNetDays=(arg)
Alias for: ITD07=
TermsNetDueDate=(arg)
Alias for: ITD06=
TermsTypeCode=(arg)
Alias for: ITD01=