extface 0.4.3a → 0.4.3b
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/extface/driver/daisy_fx1200.rb +14 -0
- data/lib/extface/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9c07a92b35f3110d8eaf2ab032053d1cc71ca6f
|
4
|
+
data.tar.gz: bf8315f4331cfc4140a96ea356f149c9cc0b12ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cded660eb711f616d20fe2b742708d11b289c537d1dbfa69ae95b25514041959576da901b1b390394e5006f5976950ae4ae6f1c12deb992651ac9fc1b189f1cc
|
7
|
+
data.tar.gz: f3393bb873caddaaf1f214a165fc1b1da9b89bb379f7eb9757e9dcc91e43e176ca7eff27c87ae8b6a616f0dceada262ea98c521d210052aed3185c85c8c3aa4b
|
@@ -30,6 +30,14 @@ module Extface
|
|
30
30
|
8 => "\xc7"
|
31
31
|
}
|
32
32
|
|
33
|
+
PAYMENT_TYPE_MAP = {
|
34
|
+
1 => "P",
|
35
|
+
2 => "N",
|
36
|
+
3 => "C",
|
37
|
+
4 => "D",
|
38
|
+
5 => "B"
|
39
|
+
}
|
40
|
+
|
33
41
|
has_serial_config
|
34
42
|
|
35
43
|
include Extface::Driver::Daisy::CommandsFx1200
|
@@ -124,6 +132,12 @@ module Extface
|
|
124
132
|
|
125
133
|
def add_payment(value = nil, type_num = nil)
|
126
134
|
raise "Not in fiscal session" unless @fiscal_session
|
135
|
+
fsend(Sales::TOTAL, "".tap() do |data|
|
136
|
+
data << "\t"
|
137
|
+
data << PAYMENT_TYPE_MAP[type_num] unless type_num.blank?
|
138
|
+
data << item.price.to_s
|
139
|
+
end
|
140
|
+
)
|
127
141
|
end
|
128
142
|
|
129
143
|
def total_payment
|
data/lib/extface/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3b
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Vangelov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|