When saving a refund, it seems like the user entered as the owner is disregarded and the logged in user is made to be the order owner... Still looking into the issue to confirm and find a solution if required but wanted to flag.

Comments

jkuma’s picture

Status: Active » Needs review

Hello yaworsk,

Thanks for raising this up, from my perspective, it should sounds natural to have the logged user as the owner of for a new return. Since the logged user has proceeded to creation of a new return, it deserves to be the owner of it (even if the original order used to belong to someone else).

yaworsk’s picture

Hi goldorak - what if the logged in user is doing it on behalf of someone else. Here's a scenario - we have a "portal" site and a "channel" site. Users log into the portal site which queries channel for all orders which can be refunded. The user submits a request to refund an order which in turn happens on the channel site. The actual communication between portal and channel is done by a specific user with specific permissions but the owner of the refund on the channel should actually be the requestor.

In other words, there may be situations where the creator is creating the refund on behalf of someone else (i.e., customer service).

jkuma’s picture

Ok, I understand your case, but from my perspective, the creator of the new return has to use the admin UI instead of the user UI.

Indeed, hit the admin/commerce/orders/%order_id/edit page, you should find a "Create a new return" link. Clicking on that link, you'll get redirected to an admin page where you can start the creation of a new return and also filled out the return's owner. Does it meet your needs? Also make sure the user is granted to create returns and she has the right permissions: "Edit orders" and "Manage returns".

I'll work next days on a complete documentation because I know we are not good on that...

yaworsk’s picture

Hey, yeah completely agree, it should be the admin attributing the return, not the user, completely agree.

I did try to attribute the return from the admin ui as the site's user 1 but it always went back to the original order owner. Happy to look into it and contribute a patch since it sounds like that is how the functionality was intended. I may be just be missing something.

jkuma’s picture

Status: Needs review » Closed (works as designed)

Hello,

This issue has been solved since the patch #2378497: Losing infromation when update an order has been ported to dev branch. I'm closing this issue, make sure to update your commerce_rma module to its latest version. Also, feel free to re-open this issue if you are still facing this bug.