mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Don't flush errors when checking zero priced order validity
This commit is contained in:
@@ -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?
|
||||
valid? && line_items.count.positive? && total.zero?
|
||||
dup.valid? && line_items.count.positive? && total.zero?
|
||||
end
|
||||
|
||||
# Returns the relevant zone (if any) to be used for taxation purposes.
|
||||
|
||||
Reference in New Issue
Block a user