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

refactor: code style

Übergeordneter f79e9724
No related branches found
No related tags found
3 Merge Requests!4feat: new settings,!3refactor: code style,!2feat: new settings
Pipeline #5097 mit Warnungen bestanden mit Phase
in 12 Sekunden
......@@ -98,20 +98,18 @@ function ($orderHash, $data) {
// all is fine, we can create the users
$email = $Customer->getAttribute('email');
$message = '<p>' . QUI::getLocale()->get(
'quiqqer/order-guestorder',
'message.guest.sendInvoice.thanks'
) . '</p>';
$message = '<p>' .
QUI::getLocale()->get('quiqqer/order-guestorder', 'message.guest.sendInvoice.thanks') .
'</p>';
try {
$User = QUI::getUsers()->get($Customer->getId());
if ($User instanceof GuestOrderUser && !empty($data['guest-order-create-account'])) {
$User = GuestOrder::triggerFrontendUsersRegistration($email);
$message .= '<p>' . QUI::getLocale()->get(
'quiqqer/order-guestorder',
'message.guest.sendInvoice.accountCreation'
) . '</p>';
$message .= '<p>' .
QUI::getLocale()->get('quiqqer/order-guestorder', 'message.guest.sendInvoice.accountCreation') .
'</p>';
// frontend users don't set a password
GuestOrder::sendNewPasswordMail($User);
......@@ -150,10 +148,9 @@ function ($orderHash, $data) {
$Invoice->sendTo($email);
}
$message .= '<p>' . QUI::getLocale()->get(
'quiqqer/order-guestorder',
'message.guest.sendInvoice.invoiceSuccessful'
) . '</p>';
$message .= '<p>' .
QUI::getLocale()->get('quiqqer/order-guestorder', 'message.guest.sendInvoice.invoiceSuccessful') .
'</p>';
}
return $message;
......
......@@ -43,7 +43,7 @@ public function getBody(): string
'Order' => $Order,
'businessTypeIsChangeable' => false
]);
$Customer = $Order->getCustomer();
$Guest = new QUI\ERP\Order\Guest\GuestOrderUser();
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren