This topic should be used for discussing the person specific aspects of salary, money and efforts.
from class_person.inc.php line 361
)),
new FieldString(array('name'=>'salary_per_hour',
'title' =>__('Salary per hour') . " " . __('in Euro'),
'default' =>0.0,
'export' =>false,
)),
pixtur thinks that this is not an optimal solution, because it limits the future usage of this feature. He suggest following procedure:
- salary should be a float to make sure the it's stored as valid in the database. (Since it is already inserted as float-field to the table, the field definition should be changed from "String" to "Internal")
- The currency should be either a variable for the complete streber installation or for each project. (whereas euro could be the default):
confGet('default_currency', 'EURO');
- We should rename
person.salary_per_hour to person.default_salary - We should add a new internal field
person.default_salary_type which could be one of SALARY_PER_HOUR, SALARY_PER_DAY, SALARY_PER_PROJECT, etc. - add new
fields projectperson.salary and projectperson.salary_type - add new
field project.currency - add new option for
project.settings PROJECT_SETTING_SALARY (not sure about the labeling)