lib/eancom/edifact/segments/pia.rb in eancom-1.6.3 vs lib/eancom/edifact/segments/pia.rb in eancom-2.0.0
- old
+ new
@@ -59,9 +59,10 @@
super(tag: tag || TAG)
end
def to_json_hash
hash = {}
+ hash.merge!(product_identifier_code_qualifier: find_identifier(:product_identifier_code_qualifier)) if @product_identifier_code_qualifier
hash.merge!(item_identifier_1: @item_identifier_1) if @item_identifier_1
hash.merge!(item_type_identification_code_1: find_identifier(:item_type_identification_code_1)) if @item_type_identification_code_1
hash.merge!(code_list_identification_code_1: @code_list_identification_code_1) if @code_list_identification_code_1
hash.merge!(code_list_responsible_agency_code_1: find_identifier(:code_list_responsible_agency_code_1)) if @code_list_responsible_agency_code_1
hash.merge!(item_identifier_2: @item_identifier_2) if @item_identifier_2