[otrs-cvs] TimeAccounting/Kernel/System TimeAccounting.pm, 1.63, 1.64
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/TimeAccounting/Kernel/System
In directory lancelot:/tmp/cvs-serv5708/Kernel/System
Modified Files:
TimeAccounting.pm
Log Message:
Improved perldoc.
Author: mb
Index: TimeAccounting.pm
===================================================================
RCS file: /home/cvs/TimeAccounting/Kernel/System/TimeAccounting.pm,v
retrieving revision 1.63
retrieving revision 1.64
diff -2 -u -d -r1.63 -r1.64
--- TimeAccounting.pm 21 Nov 2012 14:53:53 -0000 1.63
+++ TimeAccounting.pm 30 Nov 2012 13:32:58 -0000 1.64
@@ -792,8 +792,46 @@
=item UserSettingsGet()
-returns a hash with the user period data
+returns a hash with the complete user period data for all users
my %UserData = $TimeAccountingObject->UserSettingsGet();
+returns:
+ %UserData = (
+ 3 => {
+ 1 => {
+ DateEnd => "2012-12-31",
+ DateStart => "2012-10-01",
+ LeaveDays => "23.00",
+ Overtime => "0.00",
+ Period => 1,
+ UserID => 3,
+ UserStatus => 1,
+ WeeklyHours => "40.00",
+ },
+ 2 => {
+ DateEnd => "2013-12-31",
+ DateStart => "2013-01-01",
+ LeaveDays => "23.00",
+ Overtime => "0.00",
+ Period => 2,
+ UserID => 3,
+ UserStatus => 1,
+ WeeklyHours => "32.00",
+ },
+ },
+ 4 => {
+ 1 => {
+ DateEnd => "2013-12-31",
+ DateStart => "2012-01-01",
+ LeaveDays => "23.00",
+ Overtime => "0.00",
+ Period => 1,
+ UserID => 4,
+ UserStatus => 1,
+ WeeklyHours => "40.00",
+ },
+ },
+ };
+
=cut
@@ -804,6 +842,6 @@
$Self->{DBObject}->Prepare(
SQL =>
- 'SELECT user_id, preference_period, date_start, date_end, weekly_hours, leave_days, overtime, status '
- . 'FROM time_accounting_user_period',
+ 'SELECT user_id, preference_period, date_start, date_end, weekly_hours, leave_days, overtime, status
+ FROM time_accounting_user_period'
);
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log