From 4888b3639adc868792ee8bee36985300fbee246d Mon Sep 17 00:00:00 2001
From: Jan Wennrich <jan.wennrich@pcsg.de>
Date: Tue, 23 Jul 2024 16:11:01 +0200
Subject: [PATCH] fix: log warning on missing default currency instead of error

As the problem can be handled, it is not worth an error.
---
 src/QUI/ERP/Currency/Handler.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/QUI/ERP/Currency/Handler.php b/src/QUI/ERP/Currency/Handler.php
index 6c785e7..9b031cb 100644
--- a/src/QUI/ERP/Currency/Handler.php
+++ b/src/QUI/ERP/Currency/Handler.php
@@ -200,7 +200,7 @@ public static function getDefaultCurrency(): ?Currency
                     $Config->getValue('currency', 'defaultCurrency')
                 );
             } catch (QUI\Exception $Exception) {
-                QUI\System\Log::addError('Default currency is missing');
+                QUI\System\Log::addWarning('Default currency is missing');
 
                 try {
                     self::$Default = self::getCurrency('EUR');
-- 
GitLab