Record the tax included in shipping.

This commit is contained in:
Rohan Mitchell
2015-03-02 15:17:14 +11:00
parent 9395f6c808
commit dfb855bd14
4 changed files with 68 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
module Spree
Shipment.class_eval do
def ensure_correct_adjustment_with_included_tax
ensure_correct_adjustment_without_included_tax
adjustment.set_included_tax! Config.shipping_tax_rate if Config.shipment_inc_vat
end
alias_method_chain :ensure_correct_adjustment, :included_tax
end
end