Hi I’m working with the RMA part of the Accelerator and I’m having a bit of trouble to get it to work properly. I’m trying to follow the steps described in the docs (API testing)
This part doesn’t fire even though I’ve ensured that the RMA state is Completed the OrderState.ReturnConfirmed transitions in the OrderStateBulder doesn’t get hit. stateManager.RmaStateMachine.AddRelatedState((short)RmaState.Completed, FiniteStateMachineType.Order, (short)OrderState.ReturnConfirmed);
Because of this my SalesReturnOrder never leaves OrderStatus Init.
In the DeliveryStateBuilder of the Accelerator DeliveryState.Returned should fire _orderUtilities.ReturnOrCancelAllPayments which does the refunding (Klarna in our case).
The trouble seems to be that when the SalesReturnOrder gets created in the state transition RmaState.Processing → RmaState.Completed. In the implementation of Litium.Foundation.Modules.ECommerce.Plugins.ReturnManagement.SalesReturnOrderDeliveryBuilder the deliveryCarrier.DeliveryStatus gets set to Returned. I think this causes bypassing of the accelerator DeliveryStateBuilder, right?