Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 26036b21 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: check invoice address for guest orders too

Übergeordneter e1492b41
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!47Next,!46fix: check invoice address for guest orders too
Pipeline-Nr. 5734 bestanden
......@@ -117,21 +117,12 @@ public function createInvoice($PermissionUser = null)
// invoice creation is only possible with an address
$InvoiceAddress = $this->getInvoiceAddress();
if (QUI::getPackageManager()->isInstalled('quiqqer/order-guestorder')) {
$User = $InvoiceAddress->getUser();
$Guest = new QUI\ERP\Order\Guest\GuestOrderUser();
if ($User->getId() === $Guest->getId()) {
return;
}
}
if (
$InvoiceAddress->getName() === ''
&& $InvoiceAddress->getAttribute('street_no') === ''
&& $InvoiceAddress->getAttribute('zip') === ''
&& $InvoiceAddress->getAttribute('city') === ''
&& $InvoiceAddress->getAttribute('country') === ''
|| $InvoiceAddress->getAttribute('street_no') === ''
|| $InvoiceAddress->getAttribute('zip') === ''
|| $InvoiceAddress->getAttribute('city') === ''
|| $InvoiceAddress->getAttribute('country') === ''
) {
throw new QUI\Exception([
'quiqqer/order',
......
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