Sha256: c92b138f28307ef6a7954e4c0c49f1a8658ca58794cef3273e17f758e0cf27a5

Contents?: true

Size: 206 Bytes

Versions: 2

Compression:

Stored size: 206 Bytes

Contents

Spree::Calculator::Shipping::FlexiRate.class_eval do

  def compute_package(package)
    response = compute_from_quantity(package.contents.sum(&:quantity))
    {cost: response, delivery_time: nil}
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
spree_zaez_tnt_mercurio-3.0.2 app/models/spree/calculator/shipping/flexi_rate_decorator.rb
spree_zaez_correios-3.0.3 app/models/spree/calculator/shipping/flexi_rate_decorator.rb