Skip to content

Commit

Permalink
Merge pull request #913 from magiclabs/only-lookup-zone-once-when-adj…
Browse files Browse the repository at this point in the history
…usting

Only check once whether we're in a non-default non-order zone
  • Loading branch information
gmacdougall committed Mar 3, 2016
2 parents 97b8f21 + 0091183 commit 817d60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/tax_rate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def adjust(order_tax_zone, item)
amount = compute_amount(item)
return if amount == 0

included = included_in_price && default_zone_or_zone_match?(order_tax_zone)
included = included_in_price && amount > 0

adjustments.create!({
adjustable: item,
Expand Down

0 comments on commit 817d60c

Please sign in to comment.