Small changes to int billing email layout

This commit is contained in:
Frank Schubert
2023-02-24 16:50:48 +01:00
parent 4744ef94fe
commit 733dc773a1
@@ -23,8 +23,12 @@
.$order->owner->customer_number." - " .$order->owner->customer_number." - "
.str_replace("\n", "", str_replace("\r\n", " ", $order->owner->getCompanyOrName())); .str_replace("\n", "", str_replace("\r\n", " ", $order->owner->getCompanyOrName()));
*/ */
$subject .= $order->terminations[0]->building->network->name." - "
.$order->owner->customer_number." - " if(is_array($order->terminations) && count($order->terminations)) {
$subject .= $order->terminations[0]->building->network->name." - ";
}
$subject .= $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([ $this->setReturnValue([