Skip to content

Commit

Permalink
Issue #374: try to improve POD and code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Aug 24, 2020
1 parent faf71ec commit f3be24e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Kernel/System/Ticket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2940,6 +2940,14 @@ sub TicketEscalationIndexBuild {
return 1;
}

=head2 TicketEscalationSuspendCalculate()
consider the suspend states in the escalation computation
Returns: system time for the relevant escalation
=cut

sub TicketEscalationSuspendCalculate {
my ( $Self, %Param ) = @_;

Expand Down Expand Up @@ -2990,12 +2998,12 @@ sub TicketEscalationSuspendCalculate {
$UpdateDiffTime += 4 * 60;
}

# start time in unix format
# start time in seconds since 1970
my $DestinationTime = $DateTimeObject->TimeStamp2SystemTime(
String => $Param{StartTime},
);

# loop through state changes
# loop through state changes, modifying $DestinationTime
my $SuspendState = 0;

ROW:
Expand Down Expand Up @@ -4128,7 +4136,8 @@ sub TicketPendingTimeSet {
String => $Param{String}
}
);
return if ( !$DateTimeObject );

return if !$DateTimeObject;

$Time = $DateTimeObject->ToEpoch();

Expand Down

0 comments on commit f3be24e

Please sign in to comment.