Feature: #902 - Shipments with lines
See Issue 902
Description
An order can store several shipments (partial deliveries). This change adds the data model only; creating shipments, deriving the shipping status of the order and the backend UI follow in later versions.
tx_: order item, status, carrier, tracking number, tracking URL, shipped date, note and whether the shipment is a replacement for returned products.cart_ domain_ model_ order_ shipment tx_: the products of a shipment, the shipped count of an ordered product.cart_ domain_ model_ order_ shipment_ product
Shipments are no Extbase models. They are only written by services in
database transactions, so integrators cannot change them by accident. The
readonly objects \Extcode\ and
\Extcode\ are read and stored by
\Extcode\. The TCA of both
tables is read only, the shipments are shown in the order item record.
New status (see Payment and shipping status):
- The new type
shipmentwith the statusopen,in_,process shipped,deliveredandcanceled(\Extcode\). Extensions register further shipment status inCart\ Domain\ Order\ Fulfillment\ Shipment Status Configuration/.Order Status. php - The shipping status
partially_andshipped not_(no ordered product is shippable).required
The new feature toggle cart. is disabled by default. It
sets the shipping status not_ for orders without shippable
products, see Feature: #905 - Create shipments and derive the shipping status, and
will enable the backend UI for shipments.
Impact
The database schema has to be updated. Nothing changes for existing orders.
The select of the shipping status in the backend module offers the new status
partially_ and not_.
\Extcode\ has the new case
Shipment. Code that matches all cases of the enum has to handle it.