Paketmarke bugfix versandart send no email

This commit is contained in:
OpenXE 2024-06-06 15:30:49 +02:00
parent bba2f6e56f
commit 4f8e5958ef

View File

@ -18,7 +18,7 @@ abstract class Versanddienstleister
protected int $projectId;
protected ?int $labelPrinterId;
protected ?int $documentPrinterId;
protected bool $shippingMail;
protected int $shippingMail;
protected ?int $businessLetterTemplateId;
protected ?object $settings;
@ -453,6 +453,17 @@ abstract class Versanddienstleister
$countries = Array();
$this->app->Tpl->addMessage('error', 'Länderliste ist leer. Siehe Einstellungen -> Länderliste.', false, 'PAGE');
}
switch ($this->shippingMail) {
case -1:
$address['email'] = '';
break;
case 1:
// User text template (not implemented)
break;
default:
break;
}
$json['form'] = $address;
$json['countries'] = $countries;
@ -469,6 +480,7 @@ abstract class Versanddienstleister
$json['form']['services'] = [
Product::SERVICE_PREMIUM => false
];
$this->app->Tpl->Set('JSON', json_encode($json));
$this->app->Tpl->Set('CARRIERNAME', $this->GetName());
$this->app->Tpl->Parse($target, 'createshipment.tpl');