mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-19 04:49:15 +00:00
Record the tax included in shipping.
This commit is contained in:
11
app/models/spree/shipment_decorator.rb
Normal file
11
app/models/spree/shipment_decorator.rb
Normal 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
|
||||
Reference in New Issue
Block a user