Skip to content
Code-Schnipsel Gruppen Projekte

fix: isAllowedForCalculation triggeres better error output

Geschlossen Henning Leutz requested to merge dev into master
1 Datei
+ 1
1
Änderungen vergleichen
  • Nebeneinander
  • In der Reihe
@@ -766,7 +766,7 @@ public static function calculatePayments($ToCalculate): array
@@ -766,7 +766,7 @@ public static function calculatePayments($ToCalculate): array
'Calc->calculatePayments(); Object is not allowed to calculate ' . get_class($ToCalculate)
'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(
QUI\ERP\Debug::getInstance()->log(
Lade