Bernd Wurst commited on 2014-01-11 18:32:56
Zeige 1 geänderte Dateien mit 5 Einfügungen und 1 Löschungen.
| ... | ... |
@@ -20,9 +20,13 @@ if ($_SESSION['role'] & ROLE_CUSTOMER) {
|
| 20 | 20 |
$unpayed_invoices = 0; |
| 21 | 21 |
$my_invoices = my_invoices(); |
| 22 | 22 |
foreach($my_invoices AS $inv) {
|
| 23 |
- if ($inv['bezahlt'] == 0) |
|
| 23 |
+ if ($inv['bezahlt'] == 0) {
|
|
| 24 |
+ $l = get_lastschrift($inv['id']); |
|
| 25 |
+ if (! $l) {
|
|
| 24 | 26 |
$unpayed_invoices++; |
| 25 | 27 |
} |
| 28 |
+ } |
|
| 29 |
+ } |
|
| 26 | 30 |
if ($unpayed_invoices > 0) {
|
| 27 | 31 |
$alert = $unpayed_invoices.' unbezahlt'; |
| 28 | 32 |
} |
| 29 | 33 |