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

fix: quiqqer/order#118

Übergeordneter 26f81f28
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -264,6 +264,14 @@ protected function setDataBaseData(array $data)
$customerData['address'] = $this->addressInvoice;
}
if (!isset($customerData['isCompany']) && isset($this->customer['company'])) {
$customerData['isCompany'] = !empty($this->customer['company']);
}
if (!isset($customerData['country']) && isset($customerData['address']['country'])) {
$customerData['country'] = $customerData['address']['country'];
}
try {
$this->setCustomer($customerData);
} catch (QUi\Exception $Exception) {
......@@ -300,7 +308,10 @@ protected function setDataBaseData(array $data)
}
}
$this->Articles->setUser($this->getCustomer());
$Customer = $this->getCustomer();
$Customer->setAddress($this->getDeliveryAddress());
$this->Articles->setUser($Customer);
$this->Articles->calc();
// comments
......
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