151 (edited by carl.drogo.dotraki 12/09/2019 02:15:22 pm)

Re: Payroll & Human Resource Management.

Hi friends
How can I translate frontHRM to another language? I mean for default frontAccounting modules there is a PO file containing english labels so you can translate it to any language you want. Should I edit the frontHRM code directly or there is a better way to traslate the module?

Re: Payroll & Human Resource Management.

Thank you so much @rafat.
Pay element's account will not be updated, it was designed that way from the beginning.
I also modified the this procedure to avoid misunderstandings: committed here

Phuong

Re: Payroll & Human Resource Management.

Hi @notrinos

You need to take a look at Employee Payment Entry when allocating a Loan (Employee Advance) amount. Its not generating the correct Total Amount for This Allocation.
Its somehow messy. Also is there a plan for an inquiry screen or report for loans (Advances).? It will be nice to have.

Re: Payroll & Human Resource Management.

This is a great module, am still testing it.
Please can someone help me understand beside basic salary which is debited into "Staff wages & salaries", am also seeing some other figure either credited or debited into "Staff wages & salaries" depending on if the employee has worked all the 26 days in a month. How are these figures arrived at.

Re: Payroll & Human Resource Management.

To answer my own question, after experimenting a lot I found out how this is done.
- Add up all benefits including basic salary
- Then deduct all deductions
- Whatever amount is remained, then divide it by number of days supposed to have worked per month, this gives you rate per day

So if has worked more or less days multiply by rate per day derived from above
Finally depending on whether the days were extra or less, debit or credit.
Hope this explanation helps someone out there.

156 (edited by cristiart 02/07/2020 03:02:03 am)

Re: Payroll & Human Resource Management.

I get all sorts of errors. here's one when you try to add employees:

DATABASE ERROR : Could not write employee data
error code : 1366
error message : Incorrect integer value: '' for column 'emp_id' at row 1

or another one

DATABASE ERROR : Could not write employee data
error code : 1366
error message : Incorrect integer value: '' for column 'inactive' at row 1

Re: Payroll & Human Resource Management.

let's say your have an employee that resigned but after a few month he's coming back

in include/ui/employee_ui.php add function at end

function employee_inactive_row($label, $name, $active=null) {
    echo "<tr><td class='label'>$label</td><td>";
   
    if($active==0){
        echo "<input type='radio' name=$name value='0' checked > Active&nbsp;&nbsp;&nbsp;";
        echo "<input type='radio' name=$name value='1'> Resigned &nbsp;&nbsp;&nbsp;";
        echo "<input type='radio' name=$name value='2'> Fired";
    }
    elseif($active==1) {
         echo "<input type='radio' name=$name value='0'> Active&nbsp;&nbsp;&nbsp;";
        echo "<input type='radio' name=$name value='1' checked> Resigned &nbsp;&nbsp;&nbsp;";
        echo "<input type='radio' name=$name value='2'> Fired";
    }
    else {
        echo "<input type='radio' name=$name value='0'> Active&nbsp;&nbsp;&nbsp;";
        echo "<input type='radio' name=$name value='1'> Resigned &nbsp;&nbsp;&nbsp;";
        echo "<input type='radio' name=$name value='2' checked> Fired";
    }
    echo "</td></tr>";
}

in manage/employee.php

replace line 310 with
employee_inactive_row(_('Status').':', 'EmpInactive', get_post('EmpInactive') );

to handle the fired message replace line 145 with
if (get_post('EmpInactive') == 1 or get_post('EmpInactive') ==2) {



Now your have better options to handle this.

This will solve a database error "Incorrect integer value"