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

40 lines
1.4 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: Kundigung
status: Neu
priority: Residential
Kundenname: <?=str_replace(["\n", "\r"], "", $owner->getCompanyOrName())?>
Telefon: <?=$owner->phone?>
e-Mail: <?=$owner->email?>
Kundennummer: <?=$owner->customer_number?>
### Gekündigte Produkte:
Kunde: [<?=$url_prefix?><?=self::getUrl("Address", "view", ["id" => $owner->id])?>](<?=str_replace(["\n", "\r"], "", $owner->getCompanyOrName())?>)
| Produkt | Matchcode | Kündigungsdatum |
------------------------------------------
[<?=($url_prefix)?><?=self::getUrl("Contract", "view", ["contract_id" => $contract->id])?>](<?=$contract->product_name?>) | <?=$contract->matchcode?> | <?=date("d.m.Y", $contract->cancel_date)?> |
<?php foreach($linked_contracts as $link): ?>
[<?=$url_prefix?><?=self::getUrl("Contract", "view", ["contract_id" => $link->id])?>](<?=$link->product_name?>) | <?=$link->matchcode?> | <?=date("d.m.Y", $link->cancel_date)?> |
<?php endforeach; ?>