We are facing an issue with the handling of Customer Orders when an approved Invoice Preview is subsequently revoked.
Scenario:
- An Invoice Preview is approved against a Request.
- A Customer Order is automatically created.
- The approval is later revoked.
Observed Behavior:
- Upon revoking the approval, the application removes only the Request reference from the Customer Order line.
- The Customer Order line itself remains in place.
- Attempting to delete the Customer Order line results in an error indicating that the line is being used by a Work Task.
- Attempting to cancel the Customer Order results in an error stating that the cancellation must be initiated from the Request.
This leaves the Customer Order in an inconsistent state, as it can neither be deleted nor cancelled through the normal process. At the same time, the application still allows the order to be released and invoiced, even though the Invoice Preview approval has been revoked.
Could you please confirm whether this is a known issue or a product defect? If so, is there a fix, patch, or workaround available to ensure that the Customer Order (or its lines) is properly removed or cancelled when the Invoice Preview approval is revoked against a Request?