As Spock, I want my stock information to be updated when I accept shipment.
When confirming a Proof of Delivery a stock event should be send to the Stock Management service using the following mapping:
ID of the user doing the Proof of Delivery confirmation
For each Proof of Delivery Line Item with accepted stock a new line item is added to the sent stock event using the following mapping:
The date of Proof of Delivery confirmation
The ID of the "Transfer In" reason from the Stock Management service
The confirmation action should still update the Proof of Delivery and Order statuses.
The feature should be written in such a way it could be disabled with single flag (to make it easier to implement flag-based features).