Added productchange notification ticket email
This commit is contained in:
@@ -197,7 +197,7 @@
|
||||
?>
|
||||
<tr data-link-type="<?=$link->type?>" class="<?=($hide_credit && $link->type == "credit") ? "hidden" : ""?>">
|
||||
<td>
|
||||
<input type="radio" class="form-check link-keep"
|
||||
<input type="radio" class="form-check link-keep pointer"
|
||||
id="link-<?=$link->id?>-action-keep"
|
||||
name="links[<?=$link->id?>][action]"
|
||||
value="keep" <?=($linkcontract->cancel_date && $linkcontract->cancel_date < date('U')) ? "" : "checked='checked'"?>
|
||||
@@ -207,7 +207,7 @@
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="radio" class="form-check link-cancel"
|
||||
<input type="radio" class="form-check link-cancel pointer"
|
||||
id="link-<?=$link->id?>-action-cancel"
|
||||
name="links[<?=$link->id?>][action]" value="cancel"
|
||||
onchange="linkActionChange(<?=$link->id?>)" />
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @var Contract $contract
|
||||
* @var Contract $origin
|
||||
*/
|
||||
$this->setReturnValue([
|
||||
'subject' => "Produktwechsel ".$contract->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: Produktwechsel
|
||||
status: Neu
|
||||
priority: Residential
|
||||
Kundenname: <?=str_replace(["\n", "\r"], "", $contract->owner->getCompanyOrName())?>
|
||||
|
||||
Telefon: <?=$contract->owner->phone?>
|
||||
|
||||
e-Mail: <?=$contract->owner->email?>
|
||||
|
||||
Kundennummer: <?=$contract->owner->customer_number?>
|
||||
|
||||
Kunde: <?=str_replace(["\n", "\r"], "", $contract->owner->getCompanyOrName())?>
|
||||
|
||||
|
||||
### Altes Produkt:
|
||||
Vertragsinhaber: <?=$origin->owner->getCompanyOrName()?> [<?=$origin->owner->customer_number?>]
|
||||
Produkt: <?=$origin->product_name?>
|
||||
|
||||
<?=$url_prefix?><?=self::getUrl("Contract", "view", ["contract_id" => $origin->id])?>
|
||||
|
||||
|
||||
### Neues Produkt:
|
||||
Vertragsinhaber: <?=$contract->owner->getCompanyOrName()?> [<?=$contract->owner->customer_number?>]
|
||||
Produkt: <?=$contract->product_name?>
|
||||
|
||||
<?=$url_prefix?><?=self::getUrl("Contract", "view", ["contract_id" => $contract->id])?>
|
||||
|
||||
|
||||
<?php if($contract->finish_date): ?>
|
||||
Neues Produkt hat fertigstellungdatum, somit ist nach der technischen Umstellung nichts mehr zu machen.
|
||||
<?php else: ?>
|
||||
⚠️ Neues Produkt muss nach der technischen Umstellung in thetool FERTIGGESTELLT werden.
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user