Feat: Updates to fullfilment services, shipping views, timezones, and elta labels
This commit is contained in:
1 parent
eadaf3a580
commit
a8fe13e336
17 files changed
+653
-45
No files matched your search
@@ -170,7 +170,7 @@ class OrderShipmentsExtension extends ViewPageExtension
|
||||
->hidden(fn (Shipment $record) => $record->shipmentInfo->isEmpty())
|
||||
->schema([
|
||||
TextEntry::make('status')
|
||||
->label(fn (ShipmentInfo $record) => $record->occurred_at->format('Y-m-d H:i'))
|
||||
->label(fn (ShipmentInfo $record) => $record->occurred_at->inDisplayTimezone()->format('Y-m-d H:i'))
|
||||
->inlineLabel()
|
||||
->state(fn (ShipmentInfo $record) => (string) str($record->status->value)->replace('_', ' ')->title())
|
||||
// Our status as the label, the carrier's own wording underneath.
|
||||
@@ -223,7 +223,11 @@ class OrderShipmentsExtension extends ViewPageExtension
|
||||
|
||||
private function helperText(Shipment $record): string
|
||||
{
|
||||
$parts = ['Created '.$record->created_at->format('Y-m-d H:i')];
|
||||
$parts = ['Created '.$record->created_at->inDisplayTimezone()->format('Y-m-d H:i')];
|
||||
|
||||
if ($parcel = $record->parcelDescription()) {
|
||||
$parts[] = $parcel;
|
||||
}
|
||||
|
||||
if (BoxNowShipping::isDriver($record->carrier) && $locker = $record->meta['locker_id'] ?? null) {
|
||||
$parts[] = 'Locker '.$locker;
|
||||
|
||||
Reference in new issue
Block a user