Skip to content
Code-Schnipsel Gruppen Projekte
Commit a27fe987 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'dev'

Übergeordnete 8725327f 11af7f84
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -113,7 +113,7 @@ public function canUsedBy(
$userGroupValue = $ShippingEntry->getAttribute('user_groups');
$areasValue = $ShippingEntry->getAttribute('areas');
// if groups and areas are empty, everbody is allowed
// if groups and areas are empty, everybody is allowed
if (empty($userGroupValue) && empty($areasValue)) {
return true;
}
......
......@@ -355,6 +355,10 @@ public function canUsedInOrder($Order)
$weight = FieldUtils::weightFieldToKilogram($Weight);
}
if (\is_array($weight)) {
$weight = $weight['quantity'];
}
if (!isset($articleUnits[$unitId])) {
$articleUnits[$unitId] = 0;
}
......
......@@ -92,7 +92,7 @@ public function getShippingProviders()
$result = [];
foreach ($providers as $provider) {
if (!class_exists($provider)) {
if (!\class_exists($provider)) {
continue;
}
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren