Sha256: 0a32f21c67254a9e3181b442a0a48564e479579c86b240d10035f7bf65362e2f
Contents?: true
Size: 486 Bytes
Versions: 4
Compression:
Stored size: 486 Bytes
Contents
# frozen_string_literal: true module Spree module Calculator::Returns class AssembliesDefaultRefundAmount < DefaultRefundAmount def compute(return_item) percentage = return_item.inventory_unit.percentage_of_line_item if percentage < 1 && return_item.variant.part? line_item = return_item.inventory_unit.line_item (super * percentage * line_item.quantity).round 4, :up else super end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems