Files
thetool/Layout/default/Emailtemplates/customer/cancel_ticket.php
2024-07-11 21:44:50 +02:00

50 lines
1.3 KiB
PHP

<?php
$this->setReturnValue([
'subject' => "Kündigung zum "
.date("d.m.Y", $contract->cancel_date)
." - "
.$owner->customer_number
." "
.str_replace(["\n", "\r"], "", $owner->getCompanyOrName()),
'from_email' => "workspace.admin@xinon.at",
'from_email_name' => "thetool"
]);
$url_prefix = "http".($_SERVER["HTTPS"] ? "s" : "")."://".$_SERVER["HTTP_HOST"];
?>
project: storungen-and-support
type: Kündigung
status: Neu
priority: Residential
Kundenname: <?=str_replace(["\n", "\r"], "", $owner->getCompanyOrName())?>
Telefon: <?=$owner->phone?>
e-Mail: <?=$owner->email?>
Kundennummer: <?=$owner->customer_number?>
Kunde: <?=str_replace(["\n", "\r"], "", $owner->getCompanyOrName())?>
<?=$url_prefix?><?=self::getUrl("Address", "view", ["id" => $owner->id])?>
### Gekündigte Produkte:
<?=date("d.m.Y", $contract->cancel_date)?>: <?=$contract->product_name?>
<?=$contract->matchcode?>
<?=($url_prefix)?><?=self::getUrl("Contract", "view", ["contract_id" => $contract->id])?>
<?php foreach($linked_contracts as $link): ?>
<?=date("d.m.Y", $link->cancel_date)?>: <?=$link->product_name?>
<?=$link->matchcode?>
<?=$url_prefix?><?=self::getUrl("Contract", "view", ["contract_id" => $link->id])?>
<?php endforeach; ?>