search_companies('Mepha')
---
The CSS file for evidentia is http://swiss.mailr.se/css/oddb.css. Must remove lnf for mymedi, mymigel, provita, carenaschweiz and konsuminfo. Done with commit Use correct css for evidentia. Remove unused lnf
Must remove some code which was only used by mymedi. See commit Removed unused code for mymedi
Removed display csv_export with commit Disable csv_export for evidentia
Don't display a select list if only one search_type is enabled. See commit Simplify if only one search_type
One should never, ever push a change before runnning the specs. I did not follow this rule and got punished by real life. There was nil access in my simple change. Fixed with commit Avoid nil access
Set set public price for all non-Pharma and non sl prodcuts to ZurRose public price + 80%. I must first test whether optparse allows me to add a optional parameter (80) and a required parameter (dat).
Moved parsing the options into a new class under lib/options.rb and added spec tests for all. Added tests for all options. Cleaned up some unpure code, e.g. opts[:nonpharma] = :true
, which should be opts[:nonpharma] = true
. See Moved option parsing to separate file. Changed all tests to use the new Options class instead of passing an options hash. See Tests use now new Options class
Found an error in the existing code. When generating *.dat files, many articles have a price of 0 even when we have a ZurRose price and the option -p zurrose
is given.
Fixed the problem with commit Added option -r x to increase prices by x percent when generating .dat
Updated history and version with commit Bumped version to 1.8.10.
Running tests. When comparing the output I see, that some prices are not outputted correctly, e.g
oddb_with_migel.dat has now
1120020209ERYTHROCIN i.v. Trockensub 1000 mg Ampulle 1 Stk 37616010.03000000000076802025804752
instead of
1120020209ERYTHROCIN i.v. Trockensub 1000 mg Ampulle 1 Stk 0037616010003000000000076802025804752
Fixed this problem with commit Fixed output for (increased) prices in oddb.dat
After discussing with Zeno we decided to simplify the options. Pushed commit
Now adding a check whether running oddb2xml -a nonpharma -I 80
is really increasing the prices, too.
Zeno tested my changes and remarked, that I had completly misunderstood his intentions. I have to add 80% to the ext_factory and not the public price. Changing tests and implementation. Fixed with commit Fixed prices for doctor. Added more tests
Changed test_options.rb and letting it run. This will take some time. Will continue tomorrow.
Tests looked good. Pushed Corrected test_options.rb