frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
20.84k stars 7.15k forks source link

Calculation for Workers Wages #41971

Open delta2023 opened 3 months ago

delta2023 commented 3 months ago

We have workers for our factory unit. Their wages calculation is different from the employees calculation.

Their wages are decided on the number of days they are present in the factory.

So if per day wages is 1200 & they have worked for 27 days then the Basic salary is 1200×27. = 32400

Also their overtime needs to be calculated which is decided per month. 8 hours is daily working hours & other hours apart from this is considered as overtime.

Overtime is calculated as daily wagesno: of hrs/month2, i.e. if he has worked for 70 hrs more in whole month then OT = 1200×70×2

This need to be added to the salary & PF,PT & Gratuity & ESIC all are also calculated on basis of Basic Salary.

eg.

Salary inhand = (32400 + OT )-(PF +PT+GRATUITY+ESIC) Provision for Calculation of workers wages with the above points included.

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

muchai commented 3 months ago

I think report this on: https://github.com/frappe/hrms

Also, we did something similar. See if it can work for your case, probably with some modifications.

https://github.com/navariltd/nl-piece-rate-pay

https://github.com/navariltd/nl-attendance-timesheet