Skip to content
Code-Schnipsel Gruppen Projekte

Update 'next-4.x' with latest changes from 'main'

Zusammengeführt QUIQQER Stabilization requested to merge main into next-4.x
1 Datei
+ 5
1
Änderungen vergleichen
  • Nebeneinander
  • In der Reihe
@@ -200,10 +200,14 @@ public function getCurrency(): QUI\ERP\Currency\Currency
*/
public static function validatePrice(mixed $value, QUI\Locale $Locale = null): float|int|null
{
if (is_float($value)) {
if (is_float($value) || is_int($value)) {
return round($value, QUI\ERP\Defaults::getPrecision());
}
if ($value instanceof Price) {
$value = $value->getPrice();
}
$value = (string)$value;
$isNegative = str_starts_with($value, '-');
Lade