Skip to content

Commit

Permalink
Skip SMNO if EAN is not started with 7680
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasuhiro Asaka committed Jun 10, 2013
1 parent 46843f8 commit 9b0f68d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/oddb2xml/builder.rb
Expand Up @@ -550,8 +550,10 @@ def build_article
if ppac
xml.SMCAT ppac[:swissmedic_category] unless ppac[:swissmedic_category].empty?
end
if no8
xml.SMNO no8.to_s unless no8.to_s.empty?
if no8 and !no8.to_s.empty?
if de_idx[:ean][0..3] == "7680"
xml.SMNO no8.to_s
end
end
#xml.HOSPCD
#xml.CLINCD
Expand Down

0 comments on commit 9b0f68d

Please sign in to comment.