Open afdev82 opened 3 years ago
I think the problem is that the shipment is still in Ready state and not Shipped. But I don't know how to change the state in the Admin, the order is completed and the payment too. I don't have a "Ship" button.
For the moment I found a "solution".
Using the rails console I got the shipment and set it as "shipped" with the ship!
method.
After that I was able to create the customer return.
Anyway I don't understand why I don't have any button in the admin interface to do that.
I found the problem, I was missing a partial view for the API regarding the payment method in the plugin: https://github.com/adnotam/solidus_paypal_express Once I added that the JS function here has shown me again the partial to be able to set the Shipment state.
Anyway I think the error 500 should be prevented, maybe hiding the possibility to create a customer return if the shipment is not in the shipped state and giving an hint why it's not possible to do it. I don't know if this is the right approach.
Yeah, I think this issue could use a rebrand as "Prevent creation of customer returns when the order has no shipped inventory units".
I was creating a customer return for a received order. After I click on Create button I get the exception in the title (Server Error 500).
Solidus Version: v2.10.2
To Reproduce Go to the admin url: admin/orders/[order_id]/customer_returns/new Select the product, select the "Reception status" (Received), the Reason (Damaged/Defective) and the Stock Location (default). Click on Create button.
Current behavior I get the following exception:
Expected behavior The customer return should be created.
Desktop:
Full stacktrace:
Gemfile.lock
Thank you for your help!