Set the shipped timestamp from the ship transition

Created on 28 February 2025, about 2 months ago

Problem/Motivation

Noticing there is no code setting the shipped time on the shipped transition.
I am not sure what the intent of the timestamp is, but if it's supposed to be set programmatically like order placed, it currently is not.

Seeing that there is no form or view mode support, it seems this was an oversight:

    $fields['shipped'] = BaseFieldDefinition::create('timestamp')
      ->setLabel(t('Shipped'))
      ->setDescription(t('The time when the shipment was shipped.'));

Steps to reproduce

transition a shipment to shipped. No timestamp.

Proposed resolution

Fix it.

Remaining tasks

Do it.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024