extface 0.4.6f → 0.4.6g
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/datecs/fp550.rb +12 -12
- data/lib/extface/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06bfc6a29943d704eea5df9117b79ed83026150c
|
4
|
+
data.tar.gz: b8b66e98488ff5fb4e6df34517eaf24ab3c042bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47586b2dd804b717d3803bffe4bf292dcdbc68dae476c3427fe14e5757bda5b94650d28a5be3102a43819e97c9fcc2ec1130be4e1ee3564b5f3f20d6219916f7
|
7
|
+
data.tar.gz: 5147101404fa5dccc5668794417955c5ab095b51beb91d2729746513d8de660121f1465fb247e3d825fb95cfdccf0696a2ec4a17443d5c6dfa8fdd1dd31babb6
|
@@ -230,6 +230,18 @@ module Extface
|
|
230
230
|
end
|
231
231
|
|
232
232
|
private
|
233
|
+
def build_sale_data(item)
|
234
|
+
"".tap() do |data|
|
235
|
+
data << item.text1 unless item.text1.blank?
|
236
|
+
data << "\x0a#{text2}" unless item.text2.blank?
|
237
|
+
data << "\t"
|
238
|
+
data << TAX_GROUPS_MAP[item.tax_group || 2]
|
239
|
+
data << ("%.2f" % item.price)
|
240
|
+
data << "*#{item.qty.to_s}" unless item.qty.blank?
|
241
|
+
data << ",#{item.percent}" unless item.percent.blank?
|
242
|
+
data << "$#{'%.2f' % item.neto}" unless item.neto.blank?
|
243
|
+
end
|
244
|
+
end
|
233
245
|
|
234
246
|
def sequence_number
|
235
247
|
@seq ||= 0x1f
|
@@ -264,18 +276,6 @@ module Extface
|
|
264
276
|
def nak?; !!@nak; end #should retry command with same seq
|
265
277
|
|
266
278
|
private
|
267
|
-
def build_sale_data(item)
|
268
|
-
"".tap() do |data|
|
269
|
-
data << item.text1 unless item.text1.blank?
|
270
|
-
data << "\x0a#{text2}" unless item.text2.blank?
|
271
|
-
data << "\t"
|
272
|
-
data << TAX_GROUPS_MAP[item.tax_group || 2]
|
273
|
-
data << ("%.2f" % item.price)
|
274
|
-
data << "*#{item.qty.to_s}" unless item.qty.blank?
|
275
|
-
data << ",#{item.percent}" unless item.percent.blank?
|
276
|
-
data << "$#{'%.2f' % item.neto}" unless item.neto.blank?
|
277
|
-
end
|
278
|
-
end
|
279
279
|
|
280
280
|
def unpacked? # is it packed or unpacked message?
|
281
281
|
@ack || @nak
|
data/lib/extface/version.rb
CHANGED