sk_calc 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWE1ZTA5MmYzYjE5MjM4NmRmNjA1ZTk1YWJjMTkxN2QzYTI0YmExYQ==
4
+ ZTI4YjFhYzNhNjI2NzVmZmU5Njc0NTQ1OWJlMGQ2NTM3ZmQ5YzE5MA==
5
5
  data.tar.gz: !binary |-
6
- MjEzY2E4NTgwNjhmNmNkNTI1M2FmYzU2NjEyZDhkNmUxY2IwYjBmYw==
6
+ YmRmYjU3OWM2YjI3OGVmNjMzODBjZmY2ODBjNmU1YWRjYmZjMjI0Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjIzZmU0YTk5YmRlNTJhMTUzYTFmZmY4ODdkNTllN2ZkYzE4YTI2NDdmOGE1
10
- MDNlNjkxZTdiNzhiMTU0YzQzYzliOTU2ODRmN2EzN2Y4MDU0NzQ5YTUyNzFm
11
- YTZmYjUyMzc2NjliYjNkYThhNGMwYTk5YTk5MjgyNzNmZWE4OTc=
9
+ YWM0YTFhZTcxNjk5NjI1YzFiN2Q1NzdjZjk2ZDg3NjA2NGJlNmRjZDI3MmE1
10
+ OTBjNDFlMTVhODM2NThmMzkxMmQ3MWNmNjJhYzQxODBjMjE1YzFmMjczOTI5
11
+ MThkZDJhMzQ1YjEyNTMyYzAyOGNhMzUzYjRjOTdmMDA1OGJmYWM=
12
12
  data.tar.gz: !binary |-
13
- NTA5MzdhMDM3ZjY2YmQyNGJhYjY3OTg0MDc5NjUxYmMyMTc0MGQ4MjM5MmU2
14
- N2U5NTRjNGM3ZTQ4Y2Y3MmU4ZTQ4MjM1MjI5MWE4ZmQwN2U5YzMzYWUwM2Ey
15
- MjUyN2QzYjk3YmZmZmMwMWQyMDZiYzczYjRiZWUyNTIwMzgxOGQ=
13
+ YzUwZjc2NDcwM2NjYTkxZGJmOGUyNjg0YzdhMTEyZDJkMGM2ZjNjMDY5ODEw
14
+ MjhmMmZiMTYyZDAyOTk3ZTcwZjcxOGE4NDk4OWRkMzhkODQ0OWE4MGM3MjA0
15
+ YmZiOWNjNmJjMDNlY2ExMDA4NjNjMWMyMDhlNmQwN2RmOGU2Y2M=
@@ -87,7 +87,7 @@ module SK::Calc::Items
87
87
  result = {}
88
88
  items.group_by(&:tax).each do |tax, item_group|
89
89
  net_total_sum = item_group.to_a.sum(&:net_total_base)
90
- result[tax] = (net_total_sum * tax / 100.0) unless tax.zero?
90
+ result[tax] = (net_total_sum * tax / 100.0) if tax && !tax.zero?
91
91
  end
92
92
  result.sort
93
93
  end
@@ -1,5 +1,5 @@
1
1
  module SK
2
2
  module Calc
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sk_calc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Leciejewski