Hi Damir,

Damir Dzeko wrote:
I wrote a report module for OTRS.

Here's what README file provided in tar.gz in attached to this
message says.

Report module for OTRS (Ticket Timings)
---------------------------------------
[...]

I tested it. It's really cool! :)

And I like the idea of business minutes...

Your package is a really good module. :)

I want also provide infos about OTRS 2.0 (current cvs head) so maybe it helps you to port this module some day to OTRS 2.0. :)

The Kernel::System::Time got one new key function:

[http://dev.otrs.org/]
 WorkingTime()
    get the working time in secondes between this times

    my $WorkingTime = $TimeObject->WorkingTime(
        StartTime => $Created,
        StopTime => $Self->SystemTime(),
    );
[...]

It calculates the working time between StartTime and StopTime (witch is also used in the frontend of OTRS 2.0) based on Kernel/Config.pm options:

[...]
    # TimeWorkingHours
    # (counted hours for working time used)
    $Self->{TimeWorkingHours} = {
        Mon => [ 8,9,10,11,12,13,14,15,16,17,18,19,20 ],
        Tue => [ 8,9,10,11,12,13,14,15,16,17,18,19,20 ],
        Wed => [ 8,9,10,11,12,13,14,15,16,17,18,19,20 ],
        Thu => [ 8,9,10,11,12,13,14,15,16,17,18,19,20 ],
        Fri => [ 8,9,10,11,12,13,14,15,16,17,18,19,20 ],
        Sat => [  ],
        Sun => [  ],
    };
    # TimeVacationDays
    # adde new days with:
    # "$Self->{TimeVacationDays}->{10}->{27} = 'Some Info';"

    $Self->{TimeVacationDays} = {
        1 => {
            01 => 'New Year\'s Eve!',
        },
        5 => {
            1 => '1 St. May',
        },
        12 => {
            24 => 'Christmas',
            25 => 'First Christmas Day',
            26 => 'Second Christmas Day',
            31 => 'Silvester',
        },
    };

    # TimeVacationDaysOneTime
    # adde new own days with:
    # "$Self->{TimeVacationDaysOneTime}->{1977}-{10}->{27} = 'Some Info';"
    $Self->{TimeVacationDaysOneTime} = {
#        2004 => {
#          6 => {
#              07 => 'Some Day',
#          },
#          12 => {
#              24 => 'Some A Day',
#              31 => 'Some B Day',
#          },
#        },
    };
[...]

PS: An I also post on the dev list about a new OTRS package format. So it's easier to provied own written modules. :)

Thanks Damir!

  Martin Edenhofer

--
((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg
        http://www.otrs.de/ :: Manage your communication!

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to