extface 0.6.9 → 0.7.0

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: 60a5c13ea7832ea917b771bc58f42fb69031d39a
4
- data.tar.gz: 6778dd8fe350283c619d2aab6de1effaa84721a7
3
+ metadata.gz: fd08bd2e1d46486af353613c52f00c4dbfdc9bf8
4
+ data.tar.gz: e600848ddbbf561134a44eb02d106c06d4c11385
5
5
  SHA512:
6
- metadata.gz: cd875f694faacaff16f33db5da5ac17864b61b56aa292aebca2bdf3e3f989205376edc903e2b7d3aecb1797f977b53c1c8d2a9ff18269595690d8eafcd1fa6f2
7
- data.tar.gz: 4668e9efc26f1b931840d9ed05abe644fde07e8a3a2c56605694796a266507d74d6264f7e6de201129497fe6ec13f64780d695b4e353bcaa1c7d70b001b2d2e2
6
+ metadata.gz: bf234e62813ac46a1ad7ebef2cd04e63204a610eb2586c567e8e75bd15a246b9599e66d3a9afdc47d5c65b5c1b323ebe5c686f5c59d762b07eb39220c7c9174d
7
+ data.tar.gz: d44e2740f650992dab29951da8b5d01db5f35a54014c9cfe65a5be84c42d6acc45d82cc03a46b3a73bf78eb42d3ad2dc06f18b42acceb40553f32a970a8cb19f
@@ -105,9 +105,10 @@ module Extface
105
105
  )
106
106
  end
107
107
  end
108
- if global_modifier_value = bill.global_modifier_value
108
+ if bill.modifiers.global.any?
109
109
  s.notify "Register Global Modifier"
110
- s.add_total_modifier global_modifier_value.to_f, global_modifier.percent_ratio.try(:to_f)
110
+ global_modifier = bill.modifiers.global.first
111
+ s.add_total_modifier bill.global_modifier_value.try(:to_f), global_modifier.percent_ratio.try(:to_f)
111
112
  end
112
113
  s.notify "Register Payment"
113
114
  bill.payments.each do |payment|
@@ -1,3 +1,3 @@
1
1
  module Extface
2
- VERSION = "0.6.9"
2
+ VERSION = "0.7.0"
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.6.9
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Vangelov