Skip to content
Code-Schnipsel Gruppen Projekte

Next

Zusammengeführt Henning Leutz requested to merge next into master
1 Datei
+ 11
2
Änderungen vergleichen
  • Nebeneinander
  • In der Reihe
@@ -614,11 +614,20 @@ class Invoice
/**
* returns the threshold above which an address is mandatory, if addresses are not mandatory in principle
*
* @return bool
* @return float
* @throws QUI\Exception
*/
public static function addressRequirementThreshold(): float
{
return QUI::getPackage('quiqqer/invoice')->getConfig()->get('invoice', 'invoiceAddressRequirementThreshold');
$threshold = QUI::getPackage('quiqqer/invoice')->getConfig()->get(
'invoice',
'invoiceAddressRequirementThreshold'
);
if (empty($threshold)) {
return 0;
}
return floatval($threshold);
}
}
Lade