lib/eancom/edifact/segments/cnt.rb in eancom-1.6.3 vs lib/eancom/edifact/segments/cnt.rb in eancom-2.0.0
- old
+ new
@@ -19,10 +19,17 @@
super(tag: tag || TAG)
end
def to_json_hash
- {}
+ hash = {}
+ hash.merge!(control_total_type_code_quantifier: find_identifier(:control_total_type_code_quantifier)) if @control_total_type_code_quantifier
+ hash.merge!(control_total_value: @control_total_value) if @control_total_value
+ hash
+ end
+
+ def group_name
+ 'counts'
end
def segment_type
TYPE
end