Skip to main content
Question

How Can Cancel Service Invoice

  • December 10, 2025
  • 4 replies
  • 33 views

0guz
Hero (Employee)
Forum|alt.badge.img+10

Hello,

I would like to explain the issue step by step.

  1. I created a Work Order and a Work Task, assigned and reported personnel, and issued the required materials.

  2. On the Sales tab, I configured the lines as Invoiceable or Not Invoiceable.

  3. I created a new Invoice Preview and it was approved.

  4. After approval, the lines were transferred to a Customer Order.

  5. The Customer Order was delivered, and the line status changed to “Delivered”. Everything works correctly up to this point.

The issue occurs when I want to add one more part as an “Invoiceable” line on the Work Task and include all Invoiceable lines in a single invoice:

  • When I try to revoke the order from the Invoice Preview, the background job returns an error because the Customer Order lines are already in Delivered state.
    Error:
    “The operation ‘SetLineCancelled’ is not allowed for Customer Order objects in state ‘Delivered’.
    ORA-20105: ServiceInvoice.SERVICEINVERROR”

  • After this, I attempted to undo the delivery from the Undo Customer Order Delivery screen, but I received another error due to the SEO supply code:
    “Cannot undo delivery for customer order lines with supply code Service Order.”

At this point:

  • I cannot delete or cancel the Customer Order lines.

  • I cannot create a new Invoice Preview that includes all Invoiceable lines, because some lines are already in “Transferred” state. The system only brings one line into the new Invoice Preview. (Additionally, I have already cancelled the first invoice on the Customer Invoice screen, so I cannot use those lines anymore.)

  • I cannot undo the Customer Order delivery because of the SEO supply code restriction.

Therefore, I need a simple and supported way to undo the process for SEO order types or to reset the flow so that all Invoiceable lines can be included in a single invoice.

Thank you.

 

Application service update: 25.1.3

Framework service update: 25.1.6

4 replies

Forum|alt.badge.img+1

Hi ​@0guz ,

This seems like an interesting scenario. I couldn’t find a direct way to undo the finished actions, but I thought it would be helpful to share a couple of possible workarounds that could help generate a single invoice:

Option 1: Add a manual line that matches the material cost on the customer order and create the invoice again. This would result in an isolated sales line on the Work Task, which we would need to mark as Not Invoiceable to ensure it doesn’t impact the overall Work Order/Work Task progression.

Option 2: I haven’t tried this exact scenario, but another approach could be to create a new customer order and generate a new invoice preview for the non-transferred lines. Then, create a collective invoice combining both customer orders (the previous one in Delivered status and the new one in Preliminary status).

Thanks


Forum|alt.badge.img+7
  • Sidekick (Customer)
  • December 11, 2025

This post here has a method which might work for you. I don’t think this worked in 10 but it has been a while since I have worked in that version.

 

Undo Delivery of Customer Order Line with Supply Code of Service Order | IFS Community


0guz
Hero (Employee)
Forum|alt.badge.img+10
  • Author
  • Hero (Employee)
  • December 11, 2025

Hello ​@Mithila N Rathnayake, thank you very much for your valuable comments.

In practice, I followed the workaround you suggested and created a new customer order.

However, in general, I believe that lines on the work task sales objects that have moved to the “Transferred” status should somehow be reversible. At the moment, every way I know is blocked. Once a line is “Transferred” and subsequently reaches the “Delivered” status, the system does not allow any corrections or reversals.

This makes me wonder whether this might actually be a bug :/

Kind regards.


0guz
Hero (Employee)
Forum|alt.badge.img+10
  • Author
  • Hero (Employee)
  • December 11, 2025

This post here has a method which might work for you. I don’t think this worked in 10 but it has been a while since I have worked in that version.

 

Undo Delivery of Customer Order Line with Supply Code of Service Order | IFS Community

Thank you ​@rsczerowski

It's look like what i looking for. I will try this.