Unable to cancel a leave

While cancelling a leave application, it gives an error, “Only expired allocation can be cancelled”. There is no workflow created for the leave application doctype. Actually, when going to cancel a leave application, it shows a leave ledger entry linked with that leave application. So, while trying to cancel that “Leave Ledger Entry”, the system throws an error as “Only expired allocation can be cancelled”.

This is a normal case, say, for example, initially, I applied for a leave of next month which in turn got approved(Submitted) as well. Now, I want to cancel it to say there is a change in the plan and don’t want to avail leave. I guess this is a very common scenario that is not served in the ERPNext. Please help.

1 Like

i have the same problem. any feedback on this admins and experts? this is a real world scenario and want to know how to navigate this error. thanks!

I have the same problem, any update for this issue please …?

Which version of Frappe/ERPNext you are using?

V15 for both

In v15, with workflow implementation, there is no issue in leave cancellation in our case.

1 Like

Hello, my friend Please don’t get confused; the problem is solved. I encountered this error initially and tried a lot to resolve it, but I couldn’t. Today, I deleted it normally, and now I really don’t know what make this error to appear.
Thank you for your interest and assist

1 Like