Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 16, 2016 at 03:25 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 16, 2016 at 07:20 AM

    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=release5

    Thank you.

    Samudrala

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.