view · edit · sidebar · attach · print · history

20130122-oddb2xml-dat-invoice-bug

<< | Index | >>


Summary

  • create dat output for oddb2xml.
  • Debug ODBA via Invoice Plugin.

Commits

oddb2xml

Index


oddb2xml-dat-output

commit

current output

1110020273KENDURAL Depottabl                                000456000840300C       76803536601632
1110031532BEN-U-RON Supp 250 mg Kind                        000178000330300D       76802915203902
1110041826KETALGIN Tabl 5 mg                                000180000615301A       76801477001122
1110041855KETALGIN Supp 10 mg                               000140000570301A       76801993202832
1110048751FLAGYL Filmtabl 250 mg                            000504001400300B       76802631301522
1110048797FLAGYL Ovula 500 mg                               000573001480300B       76802631401132
1110051078NOZINAN Filmtabl 25 mg                            000363000825300B       76802404101852
1110051084NOZINAN Filmtabl 25 mg                            001596003470300B       76802404102602
1110053344SURMONTIL Tabl 25 mg                              000681001600300B       76802878901792
1110053367SURMONTIL Tabl 100 mg                             000863001810300B       76802878903392
...
...

still missing

  • ith_swissmedic(Index Therapeuticus) # => date

Invoice Bug

ODBA brokes Hash(self) in Iteration of it self.

  • ODBA#odba_add_reference
  • InfoInvoicer#active_companies
Error: RuntimeError
Message: can't add a new key into hash during iteration
Backtrace:
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/cache_entry.rb:49:in `store'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/cache_entry.rb:49:in `block in odba_add_reference'
<internal:prelude>:10:in `synchronize'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/cache_entry.rb:48:in `odba_add_reference'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/cache.rb:310:in `fetch_or_do'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/cache.rb:225:in `fetch'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/stub.rb:49:in `odba_receiver'
/var/www/oddb.org/src/plugin/info_invoicer.rb:26:in `block (2 levels) in active_companies'
/var/www/oddb.org/src/plugin/info_invoicer.rb:22:in `each'
/var/www/oddb.org/src/plugin/info_invoicer.rb:22:in `block in active_companies'
/var/www/oddb.org/src/plugin/info_invoicer.rb:20:in `each'
/var/www/oddb.org/src/plugin/info_invoicer.rb:20:in `active_companies'
/var/www/oddb.org/src/plugin/info_invoicer.rb:159:in `group_by_company'
/var/www/oddb.org/src/plugin/info_invoicer.rb:227:in `send_annual_invoices'
/var/www/oddb.org/src/plugin/info_invoicer.rb:15:in `run'
/var/www/oddb.org/src/util/exporter.rb:359:in `block in mail_patinfo_invoices'
...
...
view · edit · sidebar · attach · print · history
Page last modified on January 22, 2013, at 07:32 AM