Drop valid? check from zero_priced_order? method

This commit is contained in:
Matt-Yorkley
2023-07-05 15:31:05 +01:00
parent 7e0042ea1d
commit 652beac73f

View File

@@ -222,7 +222,7 @@ module Spree
# There are items present in the order, but either the items have zero price,
# or the order's total has been modified (maybe discounted) to zero.
def zero_priced_order?
dup.valid? && line_items.count.positive? && total.zero?
line_items.count.positive? && total.zero?
end
# Returns the relevant zone (if any) to be used for taxation purposes.