From 0eb33f99cd2054230c5a3ba80ab8d3633f16c04b Mon Sep 17 00:00:00 2001 From: Jared Norman Date: Thu, 24 Jan 2019 17:48:22 -0800 Subject: Use correct value in cache key --- lib/super_good/solidus_taxjar/tax_calculator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/super_good/solidus_taxjar/tax_calculator.rb b/lib/super_good/solidus_taxjar/tax_calculator.rb index 0b02569..4a46953 100644 --- a/lib/super_good/solidus_taxjar/tax_calculator.rb +++ b/lib/super_good/solidus_taxjar/tax_calculator.rb @@ -136,7 +136,7 @@ module SuperGood id: line_item.id, quantity: line_item.quantity, unit_price: line_item.price, - discount: -line_item.adjustment_total, + discount: -line_item.promo_total, product_tax_code: line_item.tax_category&.tax_code } end.hash -- cgit v1.2.3