India

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

  UAE

Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222​
Mobile: +971-52-7553466

  Germany​

ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445

Contact Form


Prajul P T's picture

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".

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo], [[foo]]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.