From 830da4ff9acfd3ff91fbefb2658418555295abbc Mon Sep 17 00:00:00 2001 From: Jared Norman Date: Tue, 28 May 2019 15:58:08 -0700 Subject: Add new order check to changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGELOG.md') 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. -- cgit v1.2.3