subject change

This commit is contained in:
Frank Schubert
2023-02-28 17:05:02 +01:00
parent c94c0de131
commit f869e14351
@@ -25,12 +25,9 @@
$subject .= "[".str_replace(["\r","\n"], " ", $op->product->owner->getCompanyOrName())."] Produkt fertiggestellt - "; $subject .= "[".str_replace(["\r","\n"], " ", $op->product->owner->getCompanyOrName())."] Produkt fertiggestellt - ";
if(is_array($order->terminations) && count($order->terminations)) { if(is_array($order->terminations) && count($order->terminations)) {
$subject .= $order->terminations[0]->building->network->name." - "; $subject .= $order->terminations[0]->building->network->name;
} }
$subject .= (($order->owner->customer_number) ? $order->owner->customer_number." - " : "")
.str_replace("\n", "", str_replace("\r\n", " ", $order->owner->getCompanyOrName()));
$this->setReturnValue([ $this->setReturnValue([
'subject' => $subject, 'subject' => $subject,
@@ -70,7 +67,7 @@ Verrechungsstart: <?=date("m", $billing_start)?>/<?=date("Y", $billing_start)?>
|--------|-------------|--------------------|-------------------|-------------------|-----| |--------|-------------|--------------------|-------------------|-------------------|-----|
<?php foreach($order->products as $op): ?> <?php foreach($order->products as $op): ?>
<?php if($op->price_nbe > 0.0) $nbe_total += ($op->price_nbe / $op->billing_period); ?> <?php if($op->price_nbe > 0.0) $nbe_total += ($op->price_nbe / $op->billing_period); ?>
| <?=$op->amount?> | <?=$op->product->name?> | <?=($op->billing_period == 12) ? "Jährlich " : (($op->billing_period == 1) ? "Monatlich" : $op->billing_period."-monatlich")?> | EUR <?=$op->price?> | EUR <?=$op->price_setup?> | EUR <?=$op->price_nbe?> | | <?=$op->amount?> | <?=$op->product->name?> | <?=($op->billing_period == 12) ? "Jährlich " : (($op->billing_period == 1) ? "Monatlich" : $op->billing_period."-monatlich")?> | ~~EUR <?=$op->price?>~~ | ~~EUR <?=$op->price_setup?>~~ | EUR <?=$op->price_nbe?> |
<?php endforeach; ?> <?php endforeach; ?>