summaryrefslogtreecommitdiff
path: root/lib/super_good/solidus_taxjar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/super_good/solidus_taxjar.rb')
-rw-r--r--lib/super_good/solidus_taxjar.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/super_good/solidus_taxjar.rb b/lib/super_good/solidus_taxjar.rb
index 36b5d85..a3cb730 100644
--- a/lib/super_good/solidus_taxjar.rb
+++ b/lib/super_good/solidus_taxjar.rb
@@ -44,7 +44,7 @@ module SuperGood
}
self.line_item_tax_label_maker = ->(taxjar_line_item, spree_line_item) { "Sales Tax" }
self.logging_enabled = false
- self.shipping_calculator = ->(order) { order.shipment_total }
+ self.shipping_calculator = ->(order) { order.shipments.sum(&:total_before_tax) }
self.shipping_tax_label_maker = ->(shipment, shipping_tax) { "Sales Tax" }
self.taxable_address_check = ->(address) { true }
self.taxable_order_check = ->(order) { true }