effective_orders 5.2.11 → 5.2.12

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
  SHA256:
3
- metadata.gz: 9ed1d4a8621f678e9117f8e6e562220ebe988ce26febfbf30cf7b842ff1a2c04
4
- data.tar.gz: 97271616a90392d36fbe3ff5302b5f3437a6fafb010ca478a386a28265939aaa
3
+ metadata.gz: e6fc5fddf4893dd467c30bd2ae4f505b1c4f4f191e819601364bc230d8530627
4
+ data.tar.gz: 6a157d58abcf4836b1324b17dbee3fcb502e23e2924d59daa1ef8a957cb91fbb
5
5
  SHA512:
6
- metadata.gz: bd81818649ad2d7527492260d7e84ad2cbf4a2fbc3af3d0aef32f2385bec5b7ae891ec176e02955a6e479090f1092a19ea1b06bcea9fdbc79fb62466e6ca2aab
7
- data.tar.gz: c1d4d06ced8f1b9910c6b0610ca44a6dfb981448400876df1f1bdcd68d282e1d4ee1984c018adcca6bd1be367b548d02a9769bd9cb312fa850cacf7ca08e5113
6
+ metadata.gz: 9c98604d9238a92c62d41422b31f63001144fa47eaa5dbcf7359cf98ec849e8846d07db9be11e498df0024b66212bb674afcc646ab9f7bf4922c8b446a947ba5
7
+ data.tar.gz: 537d27c651f334bb17a189d4f3085eca6f0b33e9aaa742ea9ae270f5f3f6d00746d56007a10a5abbe2941ecbd083ae42a052bfbeecc627f0a79e31076b2dcb7c
@@ -611,7 +611,7 @@ module Effective
611
611
 
612
612
  def assign_order_totals
613
613
  self.subtotal = present_order_items.map { |oi| oi.subtotal }.sum
614
- self.tax_rate = get_tax_rate() unless (tax_rate || 0) > 0
614
+ self.tax_rate = get_tax_rate()
615
615
  self.tax = get_tax()
616
616
  self.total = subtotal + (tax || 0)
617
617
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '5.2.11'.freeze
2
+ VERSION = '5.2.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.11
4
+ version: 5.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-23 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails