billing 0.2.1 → 0.2.2

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: 5b2d10eebf4d793bf420cf5b31a909e3a16c772a
4
- data.tar.gz: '08b90f5c2c0d5db4d4a788151070b803d3ec81b5'
3
+ metadata.gz: 147cc9d6ce24271a8d4e80fa04a56a5dca0d8d72
4
+ data.tar.gz: 3c33ce95f0b483eadde14bc5bf6c195958ba162a
5
5
  SHA512:
6
- metadata.gz: c68924b4dff2cdf872e8d1d9b5984e6c469b72201b881aab96ac79ddd132236f63df2b064264554f21e2f235a64fb7aadbd9468022a42122df3afad7d4d8fb63
7
- data.tar.gz: cecbc6da485f142a2a80d740080f2821194dcbec05bc11592e137d2bff1f7f2a0a5e6a2285e36ab6da80308d0af40f513e0d7c147d40c94b629167599accac2a
6
+ metadata.gz: acec010d5a56e88a2d876ee0d07af444f4b56750a659c25e7efd4dff1d6b978d60f6e8e968287957222aec1bf6d6a5e32e4432e6441673a36ad77a0f70e11921
7
+ data.tar.gz: 986ba6475942af85be9fc3cdab8d9cf7d9c75c895c1a69a26c5d8b8a698a75638e98ef3a298d561a9e491faaba747587ebd61540e3bc64d3d15f3fdfe86b17c2
@@ -48,9 +48,10 @@ module Billing
48
48
  )
49
49
  end
50
50
  end
51
- if global_modifier_value = bill.global_modifier_value
51
+ if bill.modifiers.global.any?
52
52
  s.notify "Register Global Modifier"
53
- s.add_total_modifier global_modifier_value.to_f, global_modifier.percent_ratio.try(:to_f)
53
+ global_modifier = bill.modifiers.global.first
54
+ s.add_total_modifier bill.global_modifier_value.try(:to_f), global_modifier.percent_ratio.try(:to_f)
54
55
  end
55
56
  s.notify "Register Payment"
56
57
  bill.payments.each do |payment|
@@ -1,3 +1,3 @@
1
1
  module Billing
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Vangelov