IBM Support

ChangeOrder with ProcessPaymentOnReturnOrder leads to the error YFS:Order cannot be modified in current status

Troubleshooting


Problem

Attempts to run ChangeOrder API with ProcessPaymentOnReturnOrde=Y on return order leads to the error YFS:Order cannot be modified in current status

Symptom

Steps to reproduce:

  1. Create Return Order from CCUI or Application Console.

  2. Once the Return Order is created, Move the Return Order to Return Received Status.

  3. Call ChangeOrder API with ProcessPaymentOnReturnOrder="Y" attribute

Cause

Return orders is in status other than draft order created status.

Resolving The Problem

As per the product design, the modification rules only has Draft Created status for the Modification Type - Return by gift recipient Modifications.
.
Also with reference to the flag -ProcessPaymentOnReturnOrder
Indicates that payment methods should be copied onto the return order and that refunds should be processed there, as opposed to the original sales order. This is only valid for return orders.

Return order in created or any other status (other than draft created status) has the payment already processed on the sales order. This disallows the usage of flag ProcessPaymentOnReturnOrder when the payment is in process on the sales order.

[{"Product":{"code":"SSYLSL","label":"IBM Call Center for Commerce"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
11 February 2020

UID

swg21883542