56 lines
1.5 KiB
PHP
56 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* @var Invoice $invoice
|
|
*/
|
|
$this->setReturnValue([
|
|
'subject' => "Ihre Rechnung ".$invoice->invoice_number,
|
|
'from_email' => "no-reply@rmlinfrastruktur.at",
|
|
'from_email_name' => "Rechnung | RML Infrastruktur GmbH"
|
|
]);
|
|
|
|
$period = "monthly";
|
|
|
|
$netowner_config = TT_PREORDER_BILLING[$invoice->netowner_id];
|
|
$netoperator_config = $netowner_config["netoperators"][$invoice->owner_id];
|
|
|
|
if($netoperator_config["billing-period"] == "quarterly") {
|
|
$period = "quarterly";
|
|
}
|
|
|
|
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
|
|
Hauptstraße 36 / 3. OG | 8940 Liezen
|
|
rechnung@rmlinfrastruktur.at | www.rmlinfrastruktur.at
|
|
www.facebook.com/rmlinfrastruktur
|