oddb2tdat 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/README.txt +2 -1
  3. data/lib/oddb2tdat.rb +6 -6
  4. metadata +4 -4
@@ -1,3 +1,7 @@
1
+ === 1.0.1 / 09.01.2011
2
+
3
+ * Added Packungsgrösse after Artikelbezeichnung.
4
+
1
5
  === 1.0.0 / 05.01.2011
2
6
 
3
7
  * oddb2tdat Version 1.0.0 released
data/README.txt CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  == REQUIREMENTS:
15
15
 
16
- * ruby 1.8 or later
16
+ * ruby 1.9.3 or later
17
17
 
18
18
  == INSTALL LINUX:
19
19
 
@@ -35,6 +35,7 @@ then
35
35
 
36
36
  == USAGE:
37
37
 
38
+ * ./oddb2tdat <input file (oddb.csv)> <output file (oddb.dat)>
38
39
 
39
40
  == LICENSE:
40
41
 
@@ -1,12 +1,12 @@
1
- # /usr/bin/env ruby
1
+ #! /usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Oddb2tdat -- 05.01.2012 -- mhatakeyama@ywesee.com
3
+ # Oddb2tdat -- 09.01.2012 -- mhatakeyama@ywesee.com
4
4
 
5
5
  =begin
6
6
  01 RECA Recordart 001 – 002 2 alpha: 11
7
7
  02 CMUT Mutationscode 003 – 003 1 num: 3 ausser Handel (AE) sonst 1
8
8
  03 PHAR Pharmacode 004 – 010 7 num: Pharmacode (G)
9
- 04 ABEZ Artikelbezeichnung 011 – 060 50 alpha: Präparate (H)
9
+ 04 ABEZ Artikelbezeichnung 011 – 060 50 alpha: Präparate (H,K)
10
10
  05 PRMO Arztpreis (=Galexis-Basis-Preis) 061 – 066 6 num: NIL
11
11
  06 PRPU Publikumspreis (inkl. MWSt) 067 – 072 6 num: PP (N)
12
12
  07 CKZL Kassenzulässigkeit 073 – 073 1 num: (Q)
@@ -18,7 +18,7 @@
18
18
  =end
19
19
 
20
20
  class Oddb2tdat
21
- VERSION = '1.0.0'
21
+ VERSION = '1.0.1'
22
22
  COL = {
23
23
  :CMUT => 30, # AE
24
24
  :PHAR => 6, # G
@@ -29,7 +29,7 @@ class Oddb2tdat
29
29
  :CIKS => 15, # P
30
30
  :ITHE => 33, # AH
31
31
  :CEAN => 4, # E
32
-
32
+ :PACK => 10, # K
33
33
  }
34
34
  LEN = {
35
35
  :RECA => 2,
@@ -64,7 +64,7 @@ class Oddb2tdat
64
64
  row << "%#{LEN[:RECA]}s" % '11'
65
65
  row << "%#{LEN[:CMUT]}s" % (cmut =~ /Ja/ ? '3':'1')
66
66
  row << "%0#{LEN[:PHAR]}d" % cols[COL[:PHAR]].to_i
67
- row << "%-#{LEN[:ABEZ]}s" % cols[COL[:ABEZ]].to_s[0,LEN[:ABEZ]]
67
+ row << "%-#{LEN[:ABEZ]}s" % (cols[COL[:ABEZ]].to_s + " " + cols[COL[:PACK]]).to_s[0,LEN[:ABEZ]]
68
68
  row << "%0#{LEN[:PRMO]}d" % 0
69
69
  row << "%#{LEN[:PRPU]}s" % cols[COL[:PRPU]].to_s[0,LEN[:PRPU]]
70
70
  row << "%#{LEN[:CKZL]}s" % (cols[COL[:CKZL]] =~ /Ja/ ? 1:0)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb2tdat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Masaomi Hatakeyama, Zeno R.R. Davatz
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-05 00:00:00 +01:00
18
+ date: 2012-01-09 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency