Changed format for ticket system Cancel Notifcation

This commit is contained in:
Frank Schubert
2024-07-11 21:38:11 +02:00
parent 1a56d37cd5
commit acef0be79c
2 changed files with 18 additions and 7 deletions
@@ -24,16 +24,26 @@ 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:
Kunde: [<?=$url_prefix?><?=self::getUrl("Address", "view", ["id" => $owner->id])?>](<?=str_replace(["\n", "\r"], "", $owner->getCompanyOrName())?>)
<?=date("d.m.Y", $contract->cancel_date)?>: <?=$contract->product_name?>
<?=$contract->matchcode?>
<?=($url_prefix)?><?=self::getUrl("Contract", "view", ["contract_id" => $contract->id])?>
| 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)?> |
<?=date("d.m.Y", $link->cancel_date)?>: <?=$link->product_name?>
<?=$link->matchcode?>
<?=$url_prefix?><?=self::getUrl("Contract", "view", ["contract_id" => $link->id])?>
<?php endforeach; ?>