Sha256: fea9a84643a6c0fef4362b8c34e87a1daa61a6f2875ac2c5777c6e0a101cdfeb
Contents?: true
Size: 397 Bytes
Versions: 3
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true module SolidusLegacyPromotions module SpreeShipmentDecorator # @return [BigDecimal] the amount of this item, taking into consideration # all non-tax eligible adjustments. def total_before_tax amount + adjustments.select { |adjustment| !adjustment.tax? && adjustment.eligible? }.sum(&:amount) end Spree::Shipment.prepend self end end
Version data entries
3 entries across 3 versions & 1 rubygems