hrms icon indicating copy to clipboard operation
hrms copied to clipboard

Expire Carry Forwarded Leaves (Days)

Open mastewalm opened this issue 2 years ago • 15 comments

Information about bug

the Expire Carry Forwarded Leaves (Days) is not working as expected, in my opinion. I think, if I insert 365 days as a value, it should carry forward the allocated amount or the remainder after the leave application for that number of days, and those leaves that are allocated but have already passed 365 days should be expired. but in my case, if I put 365 as a value, all the allocations will be active; if I put 364 or less, only the current period allocation will be active. Is this how the system is supposed to work or is there a workaround?

Module

HR

Version

Frappe Version - 13.38 and above Erpnext version - 13.36 and above

Installation method

No response

Relevant log output / Stack trace / Full Error Message.

No response

mastewalm avatar Aug 24 '22 08:08 mastewalm

@mastewalm Could you provide more information, I'm trying to understand this problem. I'm unsure what 365 is being assigned to.

Could you provide a full example? Creating: leave type, leave allocation, etc.. Expected results, and actual results?

dj12djdjs avatar Aug 31 '22 01:08 dj12djdjs

Thank you for your response

In my company, leaves are carried forward for 2 years. I was testing the ERPNext system with 1 year carry forward, which is 365 days. So if I use a number of days less than a year, it works. But if the number of days is 365 (which as I said is 1 year) or more, it doesn't work as expected. To clarify: for example I created 3 leave allocation. period 1 from july 1, 2020 to june 30, 2021 and allocation amount 30 days period 2 from july 1, 2021 to june 30, 2022 and allocation amount 31 days and period 3 from july 1, 2022 to june 30, 2023 and allocation amount 32.

In this example, the total allocation is 93 days. As I mentioned above, the "Expire Carry Forwarded Leaves (Days)" is set for 365 days. Based on the given, since the difference between now and the first period on the example, which is from july 1 , 2020 to june 30, 2021, is more than 365 days it should be expired and the allocation balance should be 63. But as I already said, if the "Expire Carry Forwarded Leaves (Days)" is set for 365 days or more, none of the allocations expire.

For more clarity I have attached 2 zipped files containing screen shots of both cases, one with "Expire Carry Forwarded Leaves (Days)" set for less than a year and one with just a year.

Regards, Mastewal

On Wed, Aug 31, 2022 at 4:57 AM Devin Slauenwhite @.***> wrote:

@mastewalm https://github.com/mastewalm Could you provide more information, I'm trying to understand this problem. I'm unsure what 365 is being assigned to.

Could you provide a full example? Creating: leave type, leave allocation, etc.. Expected results, and actual results?

— Reply to this email directly, view it on GitHub https://github.com/frappe/hrms/issues/133, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLUBLUEYC4GL6QGXSNJOFLV323W7ANCNFSM57OM27FQ . You are receiving this because you were mentioned.Message ID: @.***>

mastewalm avatar Aug 31 '22 05:08 mastewalm

6 7 8 9 10 11

the first leave allocation should have expired.

mastewalm avatar Sep 05 '22 13:09 mastewalm

should I expect a solution? because I really need one.

mastewalm avatar Sep 15 '22 05:09 mastewalm

I'll try CC the code owner for this module since this issue is still open. CC: @ruchamahabal

Do you have any comment for this: https://github.com/frappe/hrms/issues/45#issuecomment-1233622086

dj12djdjs avatar Sep 15 '22 06:09 dj12djdjs

@ruchamahabal closed this: https://github.com/frappe/hrms/issues/45#issuecomment-1233622086

I was trying to respond through email and did not check the page. because of that, the images I sent were not visible. should I attach the images even if @ruchamahabal closed it?

mastewalm avatar Sep 15 '22 08:09 mastewalm

@mastewalm Since this issue is open, you can post them here for another reference of expected behavior.

dj12djdjs avatar Sep 15 '22 11:09 dj12djdjs

@dj12djdjs In that case, you have understood and put it as I expect the system to perform in this: https://github.com/frappe/hrms/issues/45#issuecomment-1233622086

and as you have seen above on this page, I have attached images for more clarification. I hope it will be resolved.

Thank you for your time and responce.

mastewalm avatar Sep 15 '22 12:09 mastewalm

@dj12djdjs: I am still waiting for a response but @ruchamahabal is not responding. Any idea?

mastewalm avatar Sep 22 '22 05:09 mastewalm

Hello, we will check this issue and respond. Please close all the duplicate ones

ruchamahabal avatar Sep 22 '22 05:09 ruchamahabal

@ruchamahabal: ok thanks.

mastewalm avatar Sep 22 '22 05:09 mastewalm

Greetings @ruchamahabal Any update on this issue?

mastewalm avatar Oct 26 '22 09:10 mastewalm

Greetings @deepeshgarg007 Please tell me if there is any progress on this issue.

mastewalm avatar Jan 11 '23 05:01 mastewalm

Any hope for this issue?

mastewalm avatar May 02 '23 13:05 mastewalm

Please if there is any means for you to check this issue.

mastewalm avatar Mar 13 '24 14:03 mastewalm