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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b701c9fcc8643ca07583fe0b4c24ac82f5e76853
4
- data.tar.gz: 9e9c3ca4f92c3770c40b100cfd1aec01663cfcd3
3
+ metadata.gz: 06bfc6a29943d704eea5df9117b79ed83026150c
4
+ data.tar.gz: b8b66e98488ff5fb4e6df34517eaf24ab3c042bd
5
5
  SHA512:
6
- metadata.gz: 73e4b5ff8e364bf3df423b552f395c75a1a453c2735e970c2b6317a7b0e501a2d3707df47a2e852db7ba5459399fd34398ac158cdefa8e95d130d27f0178d2de
7
- data.tar.gz: b912d3743f7fdf039c9a930314027140422d97030d20c7bf1c024a0373cb1a9236288733c7fa62689d46de80c3f299a3ca82a8aafe2a9d749ba1c1076f74990f
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
@@ -1,3 +1,3 @@
1
1
  module Extface
2
- VERSION = "0.4.6f"
2
+ VERSION = "0.4.6g"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extface
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6f
4
+ version: 0.4.6g
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Vangelov