Output USPS event code if unknown

This commit is contained in:
Skylar Ittner 2023-01-14 20:20:31 -07:00
parent 94f9e3dfd4
commit e4fed62e45

View File

@ -138,7 +138,7 @@ class Tracking_USPS {
}
$info->appendHistoryEntry(new TrackingEntry(
TrackingStatus::USPSEventCodeToStatus((string) $history->EventCode),
((string) $history->Event),
((string) $history->Event) . (TrackingStatus::USPSEventCodeToStatus((string) $history->EventCode) == TrackingStatus::TRACKING_STATUS_UNKNOWN ? " " . (string) $history->EventCode : ""),
$datetime,
$location,
TrackingStatus::isUSPSEventCodeContainerScan((string) $history->EventCode)));