RML Preorder Billing Email templates

This commit is contained in:
Frank Schubert
2025-04-15 13:57:06 +02:00
parent a5560e749d
commit e983ad383f
2 changed files with 60 additions and 6 deletions
@@ -5,18 +5,47 @@
$this->setReturnValue([
'subject' => "Ihre ".(($invoice->total < 0) ? "Gutschrift" : "Rechnung" )." ".$invoice->invoice_number,
'from_email' => "no-reply@rmlinfrastruktur.at",
'from_email_name' => "Verrechnung | RML Infrastruktur GmbH"
'from_email_name' => "Rechnung | RML Infrastruktur GmbH"
]);
?>
Sehr geehrte Damen und Herren,
im Anhang übersenden wir Ihnen unsere Abrechnung <?=(new DateTime($invoice->invoice_date))->modify("-1 month")?>
Im Anhang erhalten Sie Ihre aktuelle <?=($invoice->total < 0) ? "Gutschrift" : "Rechnung"?>.
$period = "monthly";
$netowner_config = TT_PREORDER_BILLING[$invoice->netowner_id];
$netoperator_config = $netowner_config["netoperators"][$invoice->owner_id];
if($period == "monthly") {
$fmt = new IntlDateFormatter(
MFLOCALE_TIME,
IntlDateFormatter::NONE,
IntlDateFormatter::NONE,
"Europe/Vienna",
IntlDateFormatter::GREGORIAN,
'MMMM'
);
$period_date = new DateTime($invoice->invoice_date);
$period_date->modify("-1 month");
$period_text = $fmt->format($period_date). " ".$period_date->format("Y");
}
if($period == "quarterly") {
$period_date = new DateTime($invoice->invoice_date);
$period_date->modify("-1 month");
$bill_quarter = ceil($period_date->format("n") / 3);
$period_text = "Q$bill_quarter ".$period_date->format("Y");
}
?>
Sg. Damen und Herren,
im Anhang übersenden wir Ihnen unsere Abrechnung für <?=$period_text?>.
Beste Grüße,
RML Infrastruktur GmbH
Wir bekommen ein Upgrade. Glasfaser für die Region Liezen.
Dieses Projekt wird aus Mitteln der FFG gefördert. www.ffg.at
RML Infrastruktur GmbH
Wirtschaftspark A | 8940 Liezen
+43 664 128 10 40
rechnung@rmlinfrastruktur.at | www.rmlinfrastruktur.at
www.facebook.com/rmlinfrastruktur