Feature: #907 - Show and create shipments in the backend order view 

See Issue 907

Description 

With the feature toggle cart.orderFulfillment enabled, the order view of the backend module shows the shipments of the order (see Feature: #902 - Shipments with lines and Feature: #905 - Create shipments and derive the shipping status):

  • Every shipment with its status, products and counts, carrier, tracking number (linked to the tracking URL), shipped date and note. The status of a shipment is changed with its select, like the status of payment and shipping. A shipment can only be canceled before it is shipped.
  • A form creates a shipment: a count per shippable product (prefilled with the count still available for a shipment), the status, carrier, tracking number, tracking URL (http:// or https://) and note. The form is hidden when all shippable products are in shipments.

The shipping status of the order is derived from the shipments. Choosing shipped in the select of the shipping status creates one shipment with the status shipped and all counts still available for a shipment, so shops without partial deliveries ship an order as before. If all shippable products are in shipments already, nothing is changed; change the status of these shipments instead.

The shipped date of a shipment is set when its status becomes shipped or delivered and it has no shipped date yet, also when it is created with one of these status.

Impact 

Without the feature toggle nothing changes.

With the feature toggle, the select of the shipping status does not offer partially_shipped anymore, it is only derived from the shipments.