From 65103ba5257e73fc019a2d24046fecac675028f2 Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Thu, 21 Sep 2023 09:58:31 +0200 Subject: [PATCH] fix: isAllowedForCalculation triggeres better error output --- src/QUI/ERP/Accounting/Calc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QUI/ERP/Accounting/Calc.php b/src/QUI/ERP/Accounting/Calc.php index d01d905..7926dc7 100644 --- a/src/QUI/ERP/Accounting/Calc.php +++ b/src/QUI/ERP/Accounting/Calc.php @@ -766,7 +766,7 @@ public static function calculatePayments($ToCalculate): array 'Calc->calculatePayments(); Object is not allowed to calculate ' . get_class($ToCalculate) ); - throw new QUI\ERP\Exception('Object is not allowed to calculate'); + throw new QUI\ERP\Exception('Object is not allowed to calculate ' . get_class($ToCalculate)); } QUI\ERP\Debug::getInstance()->log( -- GitLab