view · edit · sidebar · attach · print · history

20130201-update-oddb2xml-nonpharma

<< | Index | >>


Summary

  • update oddb2xml `-a nonpharma`.
  • SMCAT of article.xml

Commits

Index


oddb2xml-nonpharma

Non-Pharma.xls

add additional nonpharma form:

source

Add as new into articles.
If duplicated entry is detected, use one of swissINDEX. (add only)

        # add
        @migel.values.compact.each do |migel|
          next if migel[:pharmacode].empty?
          object = {}
          %w[de fr].each do |lang|
            pac = { 
              :ean             => migel[:ean],
              :pharmacode      => migel[:pharmacode],
              :status          => 'I',
              :stat_date       => '',
              :lang            => lang.capitalize,
              :desc            => migel["desc_#{lang}".intern],
              :atc_code        => '',
              :additional_desc => migel[:additional_desc],
              :company_ean     => migel[:company_ean],
              :company_name    => migel[:company_name],
            }
            object[lang.intern] = pac
          end
          @articles << object
        end
commit

Improve oddb2xml outputs

SMCAT

Update article to check :swissmedic_category of Packungen.xml.

commit

Others

commit
view · edit · sidebar · attach · print · history
Page last modified on February 01, 2013, at 09:03 AM