Skip to content

Commit

Permalink
Update order.rb: has_deposit true only for positive deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
mjavurek authored Dec 16, 2024
1 parent c6dad40 commit 17bdf06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def articles_sort_by_category
end

def has_deposit?
order_articles.any? { |oa| oa.article.deposit != 0 }
order_articles.any? { |oa| oa.article.deposit > 0 }
end

def has_tolerance?
Expand Down

0 comments on commit 17bdf06

Please sign in to comment.