Added emailtemplate for Cancel notification

This commit is contained in:
Frank Schubert
2024-07-11 17:50:41 +02:00
parent 3b35bd561e
commit 8807d7197e
12 changed files with 254 additions and 9 deletions

View File

@@ -99,7 +99,17 @@
<?php endif; ?>
</td>
</tr><tr>
<td colspan="2"><h4>Verrechnungsdaten<?=(array_key_exists("billing", $address->links) && is_array($address->links["billing"]) && count($address->links["billing"])) ? " (<span class='text-danger'>Achtung: Seperate Rechnungsadresse vorhanden</span>)" : ""?> </h4></td>
<td colspan="2">
<h4>
Verrechnungsdaten
<?php if(array_key_exists("billing", $address->links_to) && is_array($address->links_to["billing"]) && count($address->links_to["billing"])): ?>
(<span class='text-danger'>Achtung: Seperate Rechnungsadresse vorhanden</span>)
<?php elseif(array_key_exists("billing", $address->linked_as) && is_array($address->linked_as["billing"]) && count($address->linked_as["billing"])): ?>
<span class='text-success'>(Ist aktive Rechnungsadresse)</span>
<?php endif; ?>
</h4>
</td>
</tr><tr>
<th>UID</th>
<td><?=$address->uid?></td>
@@ -243,7 +253,19 @@
<?php if(is_array($address->contracts) && count($address->contracts)): ?>
<ul class="list-group list-group-flush">
<?php foreach($address->contracts as $contract): ?>
<li class="list-group-item"><a href="<?=self::getUrl("Contract", "View", ["id" => $contract->id])?>" class="<?=($contract->price < 0) ? "text-danger" : ""?>"><?=$contract->product_name?> <?=($contract->matchcode) ? "[".$contract->matchcode."]" : ""?></a> <span class='text-secondary'><?=($contract->finish_date) ? "Fertigstellung: ".date('d.m.Y', $contract->finish_date) : "in Herstellung"?></span></li>
<li class="list-group-item">
<a href="<?=self::getUrl("Contract", "View", ["id" => $contract->id])?>" class="<?=($contract->price < 0) ? "text-danger" : ""?>">
<?=$contract->product_name?> <?=($contract->matchcode) ? "[".$contract->matchcode."]" : ""?>
</a>
<?php if(is_array($contract->voicenumbers)): ?>
<span class="text-pink">
(<?=implode(", ", $contract->voicenumbers)?>)
</span>
<?php endif; ?>
<span class='text-secondary'>
<?=($contract->finish_date) ? "Fertigstellung: ".date('d.m.Y', $contract->finish_date) : "in Herstellung"?>
</span>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>