definitions/desadv/d01b.rb in eancom-1.5.0 vs definitions/desadv/d01b.rb in eancom-1.5.1
- old
+ new
@@ -144,10 +144,10 @@
items.each_with_index do |item, index|
total_quantity += item.quantity.to_i
body.segment Eancom::Edifact::LIN.new(
- line_item_identifier_1: item.line_item_identifier_1,
+ line_item_identifier_1: item.line_item_identifier_1 || index,
item_identifier: item.ean,
item_type_identification_code: 'SRV'
)
if additional_product_id = item.additional_product_id