mediserv 0.2.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mediserv/api/client.rb +2 -2
- data/lib/mediserv/api/encoder.rb +1 -3
- data/lib/mediserv/api/types.rb +14 -14
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8dda364d3fa7113b92c011b8fe3d320229171714955c0d56ab26b991b34b8f4
|
4
|
+
data.tar.gz: b2a0a07490f9eca8b3322595069601cf7d2a48dee7aa858b6317caf3e18e3491
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e244cf2adbee6ca62c9c02ba8a6b0b3cd41cbb7d2ef7456ecca9609971268523250873ead3c8a0f543896d6ccdf6df6b6aa8b48f5552054e5166f21e60bd06cc
|
7
|
+
data.tar.gz: 7fce3eff34a05fdc83762a5fb62df48a017d1a883aafa6bc41212b438680a7677f60fa612efd8f601286bd5996f1f9091f82491d96eca27f54bcb1ec30f14079
|
data/lib/mediserv/api/client.rb
CHANGED
@@ -9,8 +9,8 @@ module MediServ::API
|
|
9
9
|
@storage = storage
|
10
10
|
@encoder = MediServ::API::Encoder.new
|
11
11
|
@default_header = {
|
12
|
-
programm: 'MediServ
|
13
|
-
programm_version: '0.
|
12
|
+
programm: 'Denteo MediServ Client',
|
13
|
+
programm_version: '0.3.0', # TODO: Load from gemspec
|
14
14
|
version: 'v2',
|
15
15
|
kundennummer: clientId,
|
16
16
|
stapelnummer: 0,
|
data/lib/mediserv/api/encoder.rb
CHANGED
@@ -48,9 +48,7 @@ module MediServ::API
|
|
48
48
|
when Float
|
49
49
|
io << fmt_amount(v)
|
50
50
|
when String
|
51
|
-
io << '"'
|
52
51
|
io << v.tr("\n", '')
|
53
|
-
io << '"'
|
54
52
|
else
|
55
53
|
io << v
|
56
54
|
end
|
@@ -63,4 +61,4 @@ module MediServ::API
|
|
63
61
|
io.string.encode('windows-1252')
|
64
62
|
end
|
65
63
|
end
|
66
|
-
end
|
64
|
+
end
|
data/lib/mediserv/api/types.rb
CHANGED
@@ -220,25 +220,25 @@ module MediServ::API
|
|
220
220
|
rech_text.scan(/.{1,180}/).each.with_index(1) do |s, i|
|
221
221
|
# A line will go up to 180 characters, but could be shorter in case of a
|
222
222
|
# new line or simply a short line.
|
223
|
-
h["RechText
|
223
|
+
h["RechText#{i}"] = s
|
224
224
|
end unless rech_text.nil?
|
225
225
|
leistungen.each.with_index(1) do |l, i|
|
226
226
|
# Total der Punkt von Ansatz
|
227
|
-
# h["TotalPkt
|
227
|
+
# h["TotalPkt#{i}"] = l.punkte || 0.0
|
228
228
|
# Ansatz für Punkte
|
229
|
-
# h["TotalAnsatz
|
229
|
+
# h["TotalAnsatz#{i}"] = l.ansatz || 0.0
|
230
230
|
|
231
|
-
h["LeisDatum
|
232
|
-
h["LeisAnz
|
233
|
-
h["LeisZahnNr
|
234
|
-
h["LeisArt
|
235
|
-
h["LeisPosNr
|
236
|
-
h["LeisBez
|
237
|
-
h["LeisAnsatz
|
238
|
-
h["LeisPkt
|
239
|
-
h["LeisRabatt
|
240
|
-
h["LeisBetrag
|
241
|
-
h["LeisTotal
|
231
|
+
h["LeisDatum#{i}"] = fmt_date(l.datum)
|
232
|
+
h["LeisAnz#{i}"] = fmt_amount(l.anzahl)
|
233
|
+
h["LeisZahnNr#{i}"] = l.zahnnummer
|
234
|
+
h["LeisArt#{i}"] = l.art
|
235
|
+
h["LeisPosNr#{i}"] = l.nummer
|
236
|
+
h["LeisBez#{i}"] = l.bezeichnung
|
237
|
+
h["LeisAnsatz#{i}"] = l.ansatz
|
238
|
+
h["LeisPkt#{i}"] = l.punkte
|
239
|
+
h["LeisRabatt#{i}"] = l.rabatt ? 1 : 0
|
240
|
+
h["LeisBetrag#{i}"] = l.betrag
|
241
|
+
h["LeisTotal#{i}"] = l.total
|
242
242
|
end
|
243
243
|
h
|
244
244
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mediserv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denteo AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-types
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.2
|
74
|
+
rubygems_version: 3.1.2
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Ruby client interacting with MediServ
|