Leave Balance getting deducted when application is 'Rejected'

Hi,

Leave balance is getting deducted even if the Leave Application is Rejected by the Leave Approver.
Suppose ‘User A’ has been allocated 14 Privilege Leaves(PL). If a PL of 1 day is applied and is rejected by the approver, the leave balance is showing 13 days while applying for the next leave.

Why is it getting deducted?

Could you please share the version on which you are experiencing this?

It’s 11.x.x-develop

Not able to replicate the issue

Hi @jamsheer !
On which version did you try to replicate this issue?

ERPNext: v10.1.40 (develop)

Frappe Framework: v11.x.x-develop (8d8c49f) (develop)

The version that we are using is-

ERPNext: v11.x.x-develop (78064b7) (develop)

Frappe Framework: v11.x.x-develop (e0f4676) (develop)

Any solutions to this problem?