We should add a shipped
timestamp which is set on send
transition. The changed
timestamp should not be used as a shipped
timestamp, and should be kept distinct from it as you may make edits to the shipment before you send it. I also think it would be good to add a delivered
timestamp which is set on a new deliver
transition.
This would be similar to The Way Commerce orders are handled and that they have a created
timestamp, a changed
timestamp, a placed
timestamp, and a completed
timestamp.
We can set the shipped timestamp
on a commerce_shipment.ship.post_transition
event. The delivered timestamp should be able to be set programmatically, or manually through the UI.
Add the fields, functions and interface and an update hook.
Nothing major.
Nothing major other than the fact that old shipments won't show shipped or delivered, as we have no way of knowing after the fact when it happened.
Active
2.0
Code