summaryrefslogtreecommitdiff
path: root/lib/super_good/solidus_taxjar/api.rb
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-22 15:46:48 -0800
committerJared Norman <jared@super.gd>2019-01-22 15:46:48 -0800
commit16d3fe5066f6b5a014fe2126cda2c58f16f1a202 (patch)
tree2c22e0b25bd2e0f8fd24d453678ca8c50ef4253e /lib/super_good/solidus_taxjar/api.rb
parent0d91f0d5e5a38fb35c788b9305a507bf1f53ecfb (diff)
Use promo total instead of adjustment total
Diffstat (limited to 'lib/super_good/solidus_taxjar/api.rb')
-rw-r--r--lib/super_good/solidus_taxjar/api.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/super_good/solidus_taxjar/api.rb b/lib/super_good/solidus_taxjar/api.rb
index 1ceb866..1065ae5 100644
--- a/lib/super_good/solidus_taxjar/api.rb
+++ b/lib/super_good/solidus_taxjar/api.rb
@@ -37,7 +37,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