ZestyBeanz Technologies Pvt Ltd
4th Floor, Nila, Technopark
Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171
ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254
Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222
Mobile: +971-52-7553466
ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445
Hi, I think you can
Hi,
I think you can calculate the amount from the client side itself. First you have to define a contact for the employee. The contract will have the details like the base wage, allowance etc. Also in contract you need to define the salary structure for the employee. The salary structure will have the salary rules which is used to calculate the salary of the employee. In salary structure you can define the deduction of the leave. In salary rule Computation amount type as "Python Code". For example if i want to find the net salary after deducing the amount for leave. I am calculating the amount to be deduce for a leave based on the base amount and number of working days for that month ie; if number of working days is 24 and base salary is 24000, the amount deduced for a single day leave will be 24000 / 24 = 1000. this can be declared in a salary rule using the formula :
- ((contract.wage / worked_days.WORK100.number_of_days) * worked_days.Unpaid.number_of_days)
where contract is the contract defined for the customer and contract.wage fetched base salary defined in that contract, work_days is the "Worked Days" one2many in the employee payslip "Work Days & Input" tab. Each line in this one2many can be referenced using the value "Code". For example worked_days.WORK100 will fetch the value from this one2many with code "WORK100".