Hanno Böck To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/ Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code. */ require_once('inc/icons.php'); require_once('invoice.php'); require_once('inc/jquery.php'); javascript(); require_role(ROLE_CUSTOMER); $section = 'invoice_current'; title('Erteilung eines Mandats zur SEPA-Basis-Lastschrift'); output('

Ich ermächtige die Firma schokokeks.org GbR, Zahlungen von meinem Konto mittels Lastschrift einzuziehen. Zugleich weise ich mein Kreditinstitut an, die von der Firma schokokeks.org GbR auf mein Konto gezogenen Lastschriften einzulösen.

Hinweis: Ich kann innerhalb von acht Wochen, beginnend mit dem Belastungsdatum, die Erstattung des belasteten Betrages verlangen. Es gelten dabei die mit meinem Kreditinstitut vereinbarten Bedingungen. Insbesondere fallen bei Zurückweisung einer gerechtfertigten Abbuchung i.d.R. Gebühren an.

'); $name = $_SESSION['customerinfo']['name']; if ($_SESSION['customerinfo']['company']) { if ($_SESSION['customerinfo']['name']) { $name = $_SESSION['customerinfo']['company'] .' / '. $_SESSION['customerinfo']['name']; } else { $name = $_SESSION['customerinfo']['company']; } } output('

Dieses Mandat gilt für Forderungen bzgl. der Kundennummer '.$_SESSION['customerinfo']['customerno'].' ('.$name.'). Sämtliche Forderungen werden mindestens 2 Tage vor Fälligkeit angekündigt. Diese Ankündigung erfolgt in der Regel im Rahmen der Zusendung einer Rechnung per E-Mail.

'); $first_date = date('Y-m-d'); $invoices = my_invoices(); foreach ($invoices as $i) { if ($i['bezahlt'] == 0 && $i['sepamandat'] == null && $i['datum'] < $first_date) { $first_date = $i['datum']; } } $html = '

Gültigkeit des Mandats

Ein eventuell zuvor erteiltes Mandat wird zu diesem Datum automatisch ungültig.

'; $checked = false; if ($first_date != date('Y-m-d')) { $checked = true; $html .= '

'; } $html .= '

'; $html .= '

'.html_datepicker("gueltig_ab_datum", time()).'

'; $html .= '

Ihre Bankverbindung

'; $html .= '

'; $html .= '

'; output(html_form('sepamandat_neu', 'save', 'action=new', $html));