terminations[0]->id; $op = OrderProductModel::getFirst(['order_id' => $order->id, 'termination_id' => $term_id]); $billing_start = date('U'); if($op->billing_delay) { $billing_start = strtotime("+".$op->billing_delay." months"); } $subject = ""; if($order->upgrade) { $subject .= "[UPGRADE] "; } $subject .= $order->partner_number." - " ."hergestellt am ".date("d.m.Y", $order->finish_date) . " - " ."Verrechnung ab ".date("m", $billing_start)."/".date("Y", $billing_start)." - " .str_replace("\n", " ", str_replace("\r", "", $order->owner->getCompanyOrName())); $this->setReturnValue([ 'subject' => $subject, 'from_email' => TT_OUTGOING_EMAIL, 'from_email_name' => "XINON Partnerservice" ]); ?> upgrade): ?> Achtung: UPGRADE Rechnungspositionen ==================== Anzahl | Produktname | Verrechungsperiode | Preis periodisch | Preis Herstellung ----------------------------------------------------------------------------------------------------------------------- products as $op): ?> amount,0,12))?> | product->name,0,42))))?> | billing_period == 12) ? "Jährlich " : (($op->billing_period == 1) ? "Monatlich" : $op->billing_period."-monatlich")) ))?> | price,0,12))?> | EUR price_setup?> ----------------------------------------------------------------------------------------------------------------------- terminations) && count($order->terminations)): ?> Anschluss ========== terminations as $term): ?> getAddress()?> Bestelldetails =============== Bestelldatum: order_date)?> Bestellung abgeschlossen: finish_date)?> Einwilligung Datenschutz: allow_contact)? "Ja" : "Nein"?> Vertragsinhaber ================ Firma: owner->company?> Vorname: owner->firstname?> Nachname: owner->lastname?> Straße: owner->street?> PLZ: owner->zip?> Ort: owner->city?> Land: owner->country->name?> Telefon: owner->phone?> Fax: owner->fax?> Mobiltelefon: owner->mobile?> Email: owner->email?> billingaddress_id > 0 && $order->billingaddress_id != $order->owner_id): ?> Rechnungsempfänger =================== Firma: billingaddress->company?> Vorname: billingaddress->firstname?> Nachname: billingaddress->lastname?> Straße: billingaddress->street?> PLZ: billingaddress->zip?> Ort: billingaddress->city?> Land: billingaddress->country->name?> Telefon: billingaddress->phone?> Fax: billingaddress->fax?> Mobiltelefon: billingaddress->mobile?> Email: billingaddress->email?> Verrechnung ============ billing_type == "invoice"): ?> Verrechnungsart: Rechnung Verrechnungsart: SEPA Bankeinzug Bank: bank_account_bank?> Kontoinhaber: bank_account_owner?> IBAN: bank_account_iban?> BIC: bank_account_bic?>