Class: Eddy::Segments::PO3

Inherits:
Models::Segment show all
Defined in:
lib/definitions/segments/generated/po3.rb

Overview

Segment Summary:

  • Id: PO3
  • Name: Additional Item Detail
  • Purpose: To specify additional item-related data involving variations in normal price/quantity structure.

Instance Attribute Summary

Attributes inherited from Models::Segment

#elements, #id, #name, #skip, #store

Instance Method Summary collapse

Methods inherited from Models::Segment

#render

Constructor Details

#initialize(store) ⇒ void

Parameters:



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/definitions/segments/generated/po3.rb', line 12

def initialize(store)
  @id = "PO3"
  @name = "Additional Item Detail"
  @po301 = Eddy::Elements::E371.new(ref: "PO301", req: "M")
  @po302 = Eddy::Elements::E373.new(ref: "PO302", req: "O")
  @po303 = Eddy::Elements::E236.new(ref: "PO303", req: "X")
  @po304 = Eddy::Elements::E212.new(ref: "PO304", req: "O")
  @po305 = Eddy::Elements::E639.new(ref: "PO305", req: "X")
  @po306 = Eddy::Elements::E380.new(ref: "PO306", req: "M")
  @po307 = Eddy::Elements::E355.new(ref: "PO307", req: "M")
  @po308 = Eddy::Elements::E352.new(ref: "PO308", req: "O")
  super(
    store,
    @po301,
    @po302,
    @po303,
    @po304,
    @po305,
    @po306,
    @po307,
    @po308,
  )
end

Instance Method Details

#PO301=(arg) ⇒ void Also known as: ChangeReasonCode=

This method returns an undefined value.

PO301

  • Id: 371
  • Name: Change Reason Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code specifying the reason for price or quantity change

Parameters:

  • arg (String)


46
47
48
# File 'lib/definitions/segments/generated/po3.rb', line 46

def PO301=(arg)
  @po301.value = arg
end

#PO302=(arg) ⇒ void Also known as: Date=

This method returns an undefined value.

PO302

  • Id: 373
  • Name: Date
  • Type: DT
  • Min/Max: 8/8
  • Description: Date expressed as CCYYMMDD

Parameters:

  • arg (Time)


61
62
63
# File 'lib/definitions/segments/generated/po3.rb', line 61

def PO302=(arg)
  @po302.value = arg
end

#PO303=(arg) ⇒ void Also known as: PriceIdentifierCode=

This method returns an undefined value.

PO303

  • Id: 236
  • Name: Price Identifier Code
  • Type: ID
  • Min/Max: 3/3
  • Description: Code identifying pricing specification

Parameters:

  • arg (String)


76
77
78
# File 'lib/definitions/segments/generated/po3.rb', line 76

def PO303=(arg)
  @po303.value = arg
end

#PO304=(arg) ⇒ void Also known as: UnitPrice=

This method returns an undefined value.

PO304

  • Id: 212
  • Name: Unit Price
  • Type: R
  • Min/Max: 1/17
  • Description: Price per unit of product, service, commodity, etc.

Parameters:

  • arg (Float)


91
92
93
# File 'lib/definitions/segments/generated/po3.rb', line 91

def PO304=(arg)
  @po304.value = arg
end

#PO305=(arg) ⇒ void Also known as: BasisOfUnitPriceCode=

This method returns an undefined value.

PO305

  • Id: 639
  • Name: Basis of Unit Price Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code identifying the type of unit price for an item

Parameters:

  • arg (String)


106
107
108
# File 'lib/definitions/segments/generated/po3.rb', line 106

def PO305=(arg)
  @po305.value = arg
end

#PO306=(arg) ⇒ void Also known as: Quantity=

This method returns an undefined value.

PO306

  • Id: 380
  • Name: Quantity
  • Type: R
  • Min/Max: 1/15
  • Description: Numeric value of quantity

Parameters:

  • arg (Float)


121
122
123
# File 'lib/definitions/segments/generated/po3.rb', line 121

def PO306=(arg)
  @po306.value = arg
end

#PO307=(arg) ⇒ void Also known as: UnitOrBasisForMeasurementCode=

This method returns an undefined value.

PO307

  • Id: 355
  • Name: Unit or Basis for Measurement Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

Parameters:

  • arg (String)


136
137
138
# File 'lib/definitions/segments/generated/po3.rb', line 136

def PO307=(arg)
  @po307.value = arg
end

#PO308=(arg) ⇒ void Also known as: Description=

This method returns an undefined value.

PO308

  • Id: 352
  • Name: Description
  • Type: AN
  • Min/Max: 1/80
  • Description: A free-form description to clarify the related data elements and their content

Parameters:

  • arg (String)


151
152
153
# File 'lib/definitions/segments/generated/po3.rb', line 151

def PO308=(arg)
  @po308.value = arg
end