diff --git a/app/Models/Client.php b/app/Models/Client.php index 574571c2febf..3f8f9db09f7c 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -460,10 +460,10 @@ class Client extends BaseModel implements HasLocalePreference else return true; - if ((property_exists($fees_and_limits, 'min_limit')) && $fees_and_limits->min_limit !== null && $amount < $fees_and_limits->min_limit) + if ((property_exists($fees_and_limits, 'min_limit')) && $fees_and_limits->min_limit !== null && $fees_and_limits->min_limit != -1 && $amount < $fees_and_limits->min_limit) return false; - if ((property_exists($fees_and_limits, 'max_limit')) && $fees_and_limits->max_limit !== null && $amount > $fees_and_limits->max_limit) + if ((property_exists($fees_and_limits, 'max_limit')) && $fees_and_limits->max_limit !== null && $fees_and_limits->max_limit != -1 && $amount > $fees_and_limits->max_limit) return false; return true;