From 17bdf060f90178b5b28e77476283b3a37e347259 Mon Sep 17 00:00:00 2001 From: mjavurek <57668028+mjavurek@users.noreply.github.com> Date: Tue, 17 Dec 2024 00:02:33 +0100 Subject: [PATCH] Update order.rb: has_deposit true only for positive deposit --- app/models/order.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/order.rb b/app/models/order.rb index 95585618a..db2289f93 100644 --- a/app/models/order.rb +++ b/app/models/order.rb @@ -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?