Tracking from which delivery the current delivery was formed, or to which it was transferred when moving to a new point.

Tags: v8preview7 v8

Starting from V8Preview7, new properties have been added to the delivery order IDeliveryOrder that are filled when transferring a delivery from point to point: the identifier of the new delivery created for transferring the current one, and the identifier of the new delivery group. The identifier of the old delivery from which the current delivery was formed, and the identifier of the old delivery group.

When transferring a delivery from point to point, the old delivery changes to the status “Cancelled,” and a new delivery is created at the new point by cloning the data. The field MovedToDeliveryId of the old delivery is filled with the identifier of the new delivery. The field MovedToTerminalGroupId is filled with the identifier of the group to which the current delivery was transferred.

The new delivery retains the identifier of the old delivery in the field MovedFromDeliveryId, and in the field MovedFromTerminalGroupId - the identifier of the group from which the current delivery came. If the delivery was not transferred to another point, all the listed properties are equal to null.

The property MovedToDeliveryId existed in the delivery order IDeliveryOrder even before V8Preview7, but under a different name - MovedDeliveryId. In V8Preview7, it was renamed to MovedToDeliveryId.

To change any of the four fields of the delivery mentioned above, the API has added the method ChangeDeliveryMoveIds.