517159f09fb7e48e91c49cbc51f97085f2991446
bernd Index-Blöcke werden jetzt v...

bernd authored 12 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Lizenzinfos in eigenes Modu...

Bernd Wurst authored 10 years ago

5) Written 2008-2014 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) 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.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) 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.
15) */
bernd Index-Blöcke werden jetzt v...

bernd authored 12 years ago

16) 
17) if ($_SESSION['role'] & ROLE_CUSTOMER) {
18)   $alert = NULL;
19)   include_once('modules/invoice/include/invoice.php');
20)   $unpayed_invoices = 0;
21)   $my_invoices = my_invoices();
22)   foreach($my_invoices AS $inv) {
Bernd Wurst Wenn Rechnung abgebucht wir...

Bernd Wurst authored 10 years ago

23)     if ($inv['bezahlt'] == 0) {
24)       $l = get_lastschrift($inv['id']);
Bernd Wurst Zeige Rechnungen zu rückgeb...

Bernd Wurst authored 10 years ago

25)       if (! $l || $l['status'] == 'rejected') {
Bernd Wurst Wenn Rechnung abgebucht wir...

Bernd Wurst authored 10 years ago

26)         $unpayed_invoices++;
27)       }
28)     }