can't cancel sales invoice

Hi,

I cannot cancel a Sales invoice because it is linked with timesheet.

Screenshot from 2024-10-10 13-53-28

I tried cancelling timesheet. I could not delete it as well, since it is linked with sales invoice. I tried replicating this errors on other projects and invoices… It works fine… only on this project i get this message.

I want to Cancel sales Invoice but not timesheet connected to this sales invoice

onload:function(frm){
        frm.ignore_doctypes_on_cancel_all = ['Timesheet'];
    }

This is the solution.

1 Like