added general data to billing info mail

This commit is contained in:
Frank Schubert
2022-02-08 20:12:33 +01:00
parent ed7008065e
commit a7ed80f6b9

View File

@@ -17,10 +17,9 @@
$subject .= "[UPGRADE] ";
}
$subject .= $order->terminations[0]->building->network->name." - "
.(($order->terminations[0]->building->networksection_id) ? $order->terminations[0]->building->networksection->name : "<kein Bauabschnitt>")." - "
."Verrechnung ab ".date("m", $billing_start)."/".date("Y", $billing_start)." - "
."Verr. ab ".date("m", $billing_start)."/".date("Y", $billing_start)." - "
.$order->owner->customer_number." - "
.str_replace("\n", "", str_replace("\r\n", " ", $order->owner->getCompanyOrName()))." - ";
.str_replace("\n", "", str_replace("\r\n", " ", $order->owner->getCompanyOrName()));
$this->setReturnValue([
'subject' => $subject,
@@ -35,6 +34,16 @@
Achtung: UPGRADE
<?php endif; ?>
Netzgebiet: <?=$order->terminations[0]->building->network->name?>
Bauabschnitt: <?=(($order->terminations[0]->building->networksection_id) ? $order->terminations[0]->building->networksection->name : "<kein Bauabschnitt>")?>
Kundennummer: <?=$order->owner->customer_number?>
Kunde: <?=str_replace("\n", "", str_replace("\r\n", " ", $order->owner->getCompanyOrName()))?>
Verrechungsstart: <?=date("m", $billing_start)?>/<?=date("Y", $billing_start)?>
Rechnungspositionen
====================