oddb2tdat 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.txt +2 -1
- data/lib/oddb2tdat.rb +6 -6
- metadata +4 -4
data/History.txt
CHANGED
data/README.txt
CHANGED
data/lib/oddb2tdat.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
|
1
|
+
#! /usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Oddb2tdat --
|
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.
|
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:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.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-
|
18
|
+
date: 2012-01-09 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|