From 77a615adb61e8978bbbad00831da08d5b2e9d6cd Mon Sep 17 00:00:00 2001 From: paulwer Date: Thu, 28 Dec 2023 10:05:46 +0100 Subject: [PATCH] minor updates --- app/Http/ValidationRules/Company/ValidExpenseMailbox.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/ValidationRules/Company/ValidExpenseMailbox.php b/app/Http/ValidationRules/Company/ValidExpenseMailbox.php index 4f1215db0c..d6049763bf 100644 --- a/app/Http/ValidationRules/Company/ValidExpenseMailbox.php +++ b/app/Http/ValidationRules/Company/ValidExpenseMailbox.php @@ -75,12 +75,12 @@ class ValidExpenseMailbox implements Rule */ public function message() { - if ($this->validated_schema) + if ($this->is_enterprise_error) return ctrans('texts.expense_mailbox_not_available'); - if ($this->validated_schema) - return ctrans('texts.expense_mailbox_taken'); + if (!$this->validated_schema) + return ctrans('texts.expense_mailbox_invalid'); - return ctrans('texts.expense_mailbox_invalid'); + return ctrans('texts.expense_mailbox_taken'); } }