X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/343bde69ae7c9d8efc8a814ce891a3f04b8f502c..77a879cfacc24de67448c33ad9d02791c46f5512:/WEB-INF/lib/ttTeamHelper.class.php diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 553ab0d9..9a57d9c6 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -28,6 +28,7 @@ import('ttUserHelper'); import('DateAndTime'); +import('ttInvoiceHelper'); // Class ttTeamHelper - contains helper functions that operate with teams. class ttTeamHelper { @@ -328,6 +329,7 @@ class ttTeamHelper { static function getActiveInvoices($localizeDates = true) { global $user; + $addPaidStatus = $user->isPluginEnabled('ps'); $result = array(); $mdb2 = getConnection(); @@ -347,6 +349,8 @@ class ttTeamHelper { $dt->parseVal($val['date']); $val['date'] = $dt->toString($user->date_format); } + if ($addPaidStatus) + $val['paid'] = ttInvoiceHelper::isPaid($val['id']); $result[] = $val; } }