Sha256: b94185e3627532f09ee76bdbc29ae577bae72a25e61cb75c938eb5dd27d6484c

Contents?: true

Size: 247 Bytes

Versions: 2

Compression:

Stored size: 247 Bytes

Contents

module SolidusAvataxCertified
  class OrderAdjuster < Spree::Tax::OrderAdjuster

    def adjust!
      if %w(cart address delivery).include?(order.state)
        return (order.line_items + order.shipments)
      end

      super
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_avatax_certified-3.0.0 app/models/solidus_avatax_certified/order_adjuster.rb
solidus_avatax_certified-2.0.0 app/models/solidus_avatax_certified/order_adjuster.rb