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

fix: consider guestorder -> no auto invoice creation if installed

Übergeordneter d8ad665b
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!22feat: new order events + form data at the order process send routine,!21feat: new order events + form data at the order process send routine
Pipeline-Nr. 4879 bestanden
......@@ -56,7 +56,7 @@
value="{$Address->getId()}"
/>
<div class="quiqqer-order-customerData-requiredFields-message messages-message message-attention">
<div class="quiqqer-order-customerData-requiredFields-message content-message-attention">
{locale group='quiqqer/order' var='ordering.step.title.CustomerData.requiredField.text'}
</div>
......
......@@ -154,6 +154,10 @@ public function getBody()
$settings = QUI\FrontendUsers\Controls\Address\Address::checkSettingsArray($settings);
$businessTypeIsChangeable = !(QUI\ERP\Utils\Shop::isOnlyB2C() || QUI\ERP\Utils\Shop::isOnlyB2B());
if ($this->existsAttribute('businessTypeIsChangeable')) {
$businessTypeIsChangeable = $this->getAttribute('businessTypeIsChangeable');
}
$isB2B = QUI\ERP\Utils\Shop::isB2B();
$isB2C = QUI\ERP\Utils\Shop::isB2C();
$isOnlyB2B = QUI\ERP\Utils\Shop::isOnlyB2B();
......
......@@ -117,6 +117,15 @@ 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->getPhone() === ''
......
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