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

Merge branch 'dev' of dev.quiqqer.com:quiqqer/products into dev

Übergeordnete d9b0edcd 2db4abba
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -770,14 +770,21 @@ public function getPrice()
return $Price;
}
foreach ($attributesLists as $List) {
/* @var $List UniqueField */
if ($List->isRequired() && $List->getValue() === '') {
$Price->enableMinimalPrice();
return $Price;
}
}
// quiqqer/products#292
if ($this->minimumPrice &&
$this->maximumPrice &&
$this->minimumPrice !== $this->maximumPrice) {
$Price->enableMinimalPrice();
}
//
// foreach ($attributesLists as $List) {
// /* @var $List UniqueField */
// if ($List->isRequired() && $List->getValue() === '') {
// $Price->enableMinimalPrice();
//
// return $Price;
// }
// }
return $Price;
}
......@@ -1165,16 +1172,16 @@ public function toArticle($Locale = null, $fieldsAreChangeable = true)
}
$article = [
'id' => $this->getId(),
'articleNo' => $this->getFieldValue(Fields::FIELD_PRODUCT_NO),
'title' => $this->getTitle($Locale),
'description' => $this->getDescription($Locale),
'unitPrice' => $this->getUnitPrice()->value(),
'id' => $this->getId(),
'articleNo' => $this->getFieldValue(Fields::FIELD_PRODUCT_NO),
'title' => $this->getTitle($Locale),
'description' => $this->getDescription($Locale),
'unitPrice' => $this->getUnitPrice()->value(),
'nettoPriceNotRounded' => $this->nettoPriceNotRounded,
'quantity' => $this->getQuantity(),
'customFields' => $this->getCustomFieldsData(),
'customData' => $this->getCustomData(),
'displayPrice' => true
'quantity' => $this->getQuantity(),
'customFields' => $this->getCustomFieldsData(),
'customData' => $this->getCustomData(),
'displayPrice' => true
];
// quantity unit
......
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