Whenever a shipment is added, edited, or removed the order is refreshed
https://git.drupalcode.org/project/commerce_shipping/-/blob/8.x-2.x/src/...
While this is fine for draft orders and carts it can lead to data loss when the order is refreshed for placed orders. Placed orders should not change unless expressly done by an administrator. The order refresh causes line item prices to be updated, promotions to be reevaluated, taxes recalculated.
When shipments are changed there are three things that do need to happen on placed orders:
Add, edit, or delete a shipment using the Shipments tab UI in the order administration area after an order has already been placed.
Trigger a shipping specific order refresh on non draft orders.
Possible ways of doing this:
Call the provided functions that commerce_shipping defines for the order refresh to only refresh shipping specific parts of the order. Probably the wrong way.
Provide a shipment refresh service that handles the refresh similar to the core one but skips anything that is not related to shipping.
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.