billing 0.2.0 → 0.2.1

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: 6c58097626f3a3697bd125eb7b19d7be6a3d1c06
4
- data.tar.gz: ad34a72d3dbfbd5179d0210f2bdaa07d46e18752
3
+ metadata.gz: 5b2d10eebf4d793bf420cf5b31a909e3a16c772a
4
+ data.tar.gz: '08b90f5c2c0d5db4d4a788151070b803d3ec81b5'
5
5
  SHA512:
6
- metadata.gz: ed302b3a8789794c97b3d94fdd3e0de09a7a62da5df30c810e89d5466b4f7fef4e258e9287073fcc0b135957ea53c5d29a1c0bdd38fe50dcfc2efad2bee53dfa
7
- data.tar.gz: 992492c8ce61856982c48e9e0e83583c41666c65083220ecdf55bad56d2f1a5fed1fe00c9eb8d391bf48141995bddf56fc009fbca934ebf0f84899c8b454c57b
6
+ metadata.gz: c68924b4dff2cdf872e8d1d9b5984e6c469b72201b881aab96ac79ddd132236f63df2b064264554f21e2f235a64fb7aadbd9468022a42122df3afad7d4d8fb63
7
+ data.tar.gz: cecbc6da485f142a2a80d740080f2821194dcbec05bc11592e137d2bff1f7f2a0a5e6a2285e36ab6da80308d0af40f513e0d7c147d40c94b629167599accac2a
@@ -50,7 +50,7 @@ module Billing
50
50
  end
51
51
  if global_modifier_value = bill.global_modifier_value
52
52
  s.notify "Register Global Modifier"
53
- s.add_total_modifier global_modifier_value.to_f
53
+ s.add_total_modifier global_modifier_value.to_f, global_modifier.percent_ratio.try(:to_f)
54
54
  end
55
55
  s.notify "Register Payment"
56
56
  bill.payments.each do |payment|
@@ -1,3 +1,3 @@
1
1
  module Billing
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Vangelov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-22 00:00:00.000000000 Z
11
+ date: 2018-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails