|
|
@ -488,7 +488,12 @@ const TimeTrack = { |
|
|
|
ticket.history.forEach((historyEntry) => { |
|
|
|
ticket.history.forEach((historyEntry) => { |
|
|
|
if (moment(historyEntry.trackingStarted).format("MMM Do YY") === day) { |
|
|
|
if (moment(historyEntry.trackingStarted).format("MMM Do YY") === day) { |
|
|
|
historyEntry.ticket = ticket.number; |
|
|
|
historyEntry.ticket = ticket.number; |
|
|
|
collection.push(historyEntry); |
|
|
|
|
|
|
|
|
|
|
|
if (collection[ticket.number]) { |
|
|
|
|
|
|
|
collection[ticket.number] += historyEntry.minutes; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
collection[ticket.number] = historyEntry; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|