effective_orders 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f548373346f66befb20e325b166d275eff0444b9b8d2865f87c37d8116d32b0d
4
- data.tar.gz: c2cdbd728306010ba79e3847fd59578e3b51afbf2764021b3581767bad0d6831
3
+ metadata.gz: 962e704970c3ca1f08dba05993e31abd30c20cdf4e6b18669a7df4a13e8d0893
4
+ data.tar.gz: d26a74b26fb06f4840a01c1fef8723b6e8f16cca1d2e0148326f38e34bdc03af
5
5
  SHA512:
6
- metadata.gz: 027327c45635652ad18bf89f0597d3c22156adf9ba04a527014c5aae2daed01a92f50dd6d134cf7afc5a34b6ca02daae7b69e73fd801269bf22f75e07f61cc16
7
- data.tar.gz: 54576594dab1cd9a569e7c37aab4cf945b8670628d92868a85a8d068a212a8f175cf31c0955fbb933fb618efde82cd9a0d090cb8a83446c876ea74b0a9b10c0a
6
+ metadata.gz: aa72c2a7664bfac304b7950f50461f71820b15d7c4854405c9d2c71c0eea372e104bff9e2af0cdb7d38f7aa1d88819e129ac9d263c57f4030930466a6fd8e882
7
+ data.tar.gz: 878903576b4aef842dbe1bef169a4ae5565ed6df7ca61c018591bcb69bbd6b14626c461e7e53a8de6aa77eefa68578e30b9677188deebe35b2b2e11f03bd196b
@@ -227,7 +227,7 @@ module Effective
227
227
  removed.each { |order_item| order_item.mark_for_destruction }
228
228
 
229
229
  # Make sure to reset stored aggregates
230
- assign_attributes(subtotal: nil, tax_rate: nil, tax: nil, surcharge_percent: nil, surcharge: nil, total: nil)
230
+ assign_attributes(subtotal: nil, tax_rate: nil, tax: nil, amount_owing: nil, surcharge_percent: nil, surcharge: nil, total: nil)
231
231
 
232
232
  removed.length == 1 ? removed.first : removed
233
233
  end
@@ -271,7 +271,7 @@ module Effective
271
271
  end.compact
272
272
 
273
273
  # Make sure to reset stored aggregates
274
- assign_attributes(subtotal: nil, tax_rate: nil, tax: nil, surcharge_percent: nil, surcharge: nil, total: nil)
274
+ assign_attributes(subtotal: nil, tax_rate: nil, tax: nil, amount_owing: nil, surcharge_percent: nil, surcharge: nil, total: nil)
275
275
 
276
276
  retval = cart_items.map do |item|
277
277
  order_items.build(
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '6.0.0'.freeze
2
+ VERSION = '6.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect