diff --git a/Layout/default/Emailtemplates/preorder-invoice/rml/invoice-email-anb.php b/Layout/default/Emailtemplates/preorder-invoice/rml/invoice-email-anb.php index d5438fefc..98981ecb8 100644 --- a/Layout/default/Emailtemplates/preorder-invoice/rml/invoice-email-anb.php +++ b/Layout/default/Emailtemplates/preorder-invoice/rml/invoice-email-anb.php @@ -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 invoice_date))->modify("-1 month")?> -Im Anhang erhalten Sie Ihre aktuelle 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 . 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 diff --git a/Layout/default/Emailtemplates/preorder-invoice/rml/invoice-email.php b/Layout/default/Emailtemplates/preorder-invoice/rml/invoice-email.php new file mode 100644 index 000000000..ee0a6bbe8 --- /dev/null +++ b/Layout/default/Emailtemplates/preorder-invoice/rml/invoice-email.php @@ -0,0 +1,25 @@ +setReturnValue([ + 'subject' => "Ihre ".(($invoice->total < 0) ? "Gutschrift" : "Rechnung" )." ".$invoice->invoice_number, + 'from_email' => "no-reply@rmlinfrastruktur.at", + 'from_email_name' => "Verrechnung | RML Infrastruktur GmbH" +]); +?> +Sehr geehrte Damen und Herren, + +Im Anhang erhalten Sie die Rechnung für die Herstellung Ihres Glasfaseranschlusses. + +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 +rechnung@rmlinfrastruktur.at | www.rmlinfrastruktur.at +www.facebook.com/rmlinfrastruktur