diff options
author | Jared Norman <jared@super.gd> | 2019-01-24 17:48:22 -0800 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2019-01-28 10:35:05 -0800 |
commit | 0eb33f99cd2054230c5a3ba80ab8d3633f16c04b (patch) | |
tree | b6545e7db6e7d09eb6f055cbc34d1ae6d9bcbc9b /lib/super_good/solidus_taxjar | |
parent | c13def6cda7f8f51ce6ab737b823c7e8c78ea69f (diff) |
Use correct value in cache key
Diffstat (limited to 'lib/super_good/solidus_taxjar')
-rw-r--r-- | lib/super_good/solidus_taxjar/tax_calculator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |