<< | Index | >>
I change the condition to set renewal_flag_swissmedic, not 'today' but 'the first day of month'
src/plugin/swissmedic.rb#update_registration
def update_registration(row, opts = {})first_day = Date.new(@ @today.year, @ @today.month, 1)
#opts = {:date => @ @today, :create_only => false}.update(opts)opts = {:date => first_day, :create_only => false}.update(opts)
#opts[:date] ||= @ @todayopts[:date] ||= first_day
Add the records in March 2011 to data/xls/Packungen-latest.xls
Run (from bin/admin)
Result
anthroposophy 294
bsv_dossiers 3312
complementary 282
deductible_g 8625
deductible_o 49
duplicates 0
expiration_date 21913
export_registrations 668
galenic_forms 324
generics 4661
has_generic 0
homeopathy 810
inactive_date 4311
limitation_both 142
limitation_points 142
limitation_texts 1324
limitations 1324
lppv 597
missing_size 28
originals 2130
out_of_trade 3439
phytotherapy 1334
price_exfactory 9854
price_public 12383
registration_date 23546
renewal_flag 214
renewal_flag_swissmedic 41
routes_of_administration 0
sl_entries 8674
Commit
Refer: http://d.hatena.ne.jp/fuenor/20090213/1234547016
.vimrc
nmap <silent> Y Y:CpR0toR1<CR> vmap <silent> Y Y:CpR0toR1<CR> vmap <silent> y y:CpR0toR1<CR> omap <silent> y y:CpR0toR1<CR> command! CpR0toR1 if @0 =~ "\<NL>"|let @9=@8|let @8=@7|let @7=@6|let @6=@5|let @5=@4|let @4=@3|let @3=@2|let @2=@1|let @1=@0|endif
How to use
"1pu.u.u.u.u
Check register
:di