cancel
Showing results for 
Search instead for 
Did you mean: 

Cancelling through CS Cockpit creating 2 order records with same order number

abhinavsingh11
Participant
0 Kudos

Hi,

On cancelling order through CS cockpit for a customer. I observed that we get 2 orders with same order number in backoffice or in hmc. One has order quantity as 0 and one has original order quantity that customer has placed.

What is the purpose of this? Or what can I do so that I get only one order records in hmc/hybris. We are using hybris OOB CS cockpit with OMS for order cancellation

Thanks, Abhinav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

whenever an order is cancelled, a snapshot of order is created to maintain the order history. You can filter the order with the original order quantity by using search restriction something like this: INSERT_UPDATE SearchRestriction;code[unique=true];principal(uid)[unique=true];query;restrictedType(code)[unique=true];active;generate ;backendOrderVisibility;YOUR_BACKOFFICE_USER_GROUP;{versionID} IS NULL;Order;true;true

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Abhinav,

When you are querying you need to add {versionid} is null. only those records are valid. Please find the below link. It will tell you why hybris is creating non versioned orders.

https://wiki.hybris.com/pages/viewpage.action?title=Order+History+and+Order+Versioning&spaceKey=rele...

Thank you.

Samudrala