summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-05-28 15:58:08 -0700
committerJared Norman <jared@super.gd>2019-05-28 15:58:08 -0700
commit830da4ff9acfd3ff91fbefb2658418555295abbc (patch)
tree9b11db6a25bb98eb7296c61a9426f0697e045277
parentcc74b661b1654627c987bb9c3a1cdf5d599dbaec (diff)
Add new order check to changelog
-rw-r--r--CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b11ad66..5997526 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,11 @@
## master
+- Added `SuperGood::SolidusTaxJar.taxable_order_check` option which can be set to a proc that receives the order and will prevent actual tax calculation from occurring if it returns false. If your app has introduced a method like `Spree::Order#complimentary?`, you could avoid trying to compute taxes on complimentary orders by doing the following in an initializer:
+ ```ruby
+ SuperGood::SolidusTaxJar.taxable_order_check = ->(order) { order.complimentary? }
+ ```
+
## v0.13.0
- Report order.user_id as customer_id when calculating taxes and creating transactions. This enables the use of per customer exemptions.