Output USPS event code if unknown

master
Skylar Ittner 1 year ago
parent 94f9e3dfd4
commit e4fed62e45

@ -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)));

Loading…
Cancel
Save