view · edit · sidebar · attach · print · history

20130607-oddb2xml-nincd-tag

<< | Index | >>


Summary

  • Update NINCD in article.xml (Currently, always 20)

Commits

oddb2xml

Index


Update NINCD in oddb_article.xml

Current NINCD

                if @lppvs[de_idx[:ean]]
                  xml.ARTINS {
                    #xml.VDAT
                    #xml.INCD
                    xml.NINCD 20
                  }
                end
LPPV  ---> 20
MiGeL ---> 13
BAG-XML(SL/LS) ---> 10
commit

[9] 1.9.3-p385(#<Oddb2xml::Builder>)> @articles.select{|a| a[:de].length != 1 and a[:de].first[:_type] == :nonpharma }.length
=> 1827

Some times, Swissindex has some entries as same pharmacode.

[12] 1.9.3-p385(#<Oddb2xml::Builder>)> @articles.select{|a| a[:de].length != 1 and a[:de].first[:_type] == :nonpharma }[2]
=> {:de=>
  [{:_type=>:nonpharma,
    :ean=>"4042809018400",
    :pharmacode=>"55828",
    :status=>"A",
    :stat_date=>"",
    :lang=>"DE",
    :desc=>"TENSOPLAST Kompressionsbinde 7.5cmx4.5m",
    :atc_code=>"",
    :additional_desc=>"",
    :company_name=>"Smith & Nephew AG",
    :company_ean=>"7601001251861"},
   {:_type=>:nonpharma,
    :ean=>"5000223410445",
    :pharmacode=>"55828",
    :status=>"A",
    :stat_date=>"",
    :lang=>"DE",
    :desc=>"TENSOPLAST Kompressionsbinde 7.5cmx4.5m",
    :atc_code=>"",
    :additional_desc=>"",
    :company_name=>"Smith & Nephew AG",
    :company_ean=>"7601001251861"}],

Then Report (Commpand output to STDOUT) was wrong.

% be ruby -rpry bin/oddb2xml -a nonpharma
DE
        Pharma products: 14979
        NonPharma products: 30017
FR
        Pharma products: 14979
        NonPharma products: 30017
commit
view · edit · sidebar · attach · print · history
Page last modified on June 07, 2013, at 10:12 PM