Can use a generic email for recruitment
This commit is contained in:
parent
a300eae994
commit
aca20c89f9
@ -112,6 +112,8 @@ ALTER TABLE llx_recruitment_recruitmentjobposition ADD CONSTRAINT llx_recruitmen
|
||||
ALTER TABLE llx_recruitment_recruitmentjobposition ADD CONSTRAINT llx_recruitment_recruitmentjobposition_fk_user_creat FOREIGN KEY (fk_user_creat) REFERENCES llx_user(rowid);
|
||||
ALTER TABLE llx_recruitment_recruitmentjobposition ADD INDEX idx_recruitment_recruitmentjobposition_status (status);
|
||||
|
||||
ALTER TABLE llx_recruitment_recruitmentjobposition ADD COLUMN email_recruiter varchar(255);
|
||||
|
||||
create table llx_recruitment_recruitmentjobposition_extrafields
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
|
||||
@ -22,7 +22,8 @@ CREATE TABLE llx_recruitment_recruitmentjobposition(
|
||||
qty integer DEFAULT 1 NOT NULL,
|
||||
fk_soc integer,
|
||||
fk_project integer,
|
||||
fk_user_recruiter integer,
|
||||
fk_user_recruiter integer,
|
||||
email_recruiter varchar(255),
|
||||
fk_user_supervisor integer,
|
||||
fk_establishment integer,
|
||||
date_planned date,
|
||||
|
||||
@ -52,4 +52,6 @@ NewPositionToBeFilled=New job offers to be filled
|
||||
|
||||
JobOfferToBeFilled=Job offer to be filled
|
||||
ThisIsInformationOnJobPosition=Information of the job position to be filled
|
||||
ContactForRecruitment=Contact for recruitment
|
||||
ContactForRecruitment=Contact for recruitment
|
||||
EmailRecruiter=Email recruiter
|
||||
ToUseAGenericEmail=To use a generic email. If not defined, the email of the responsible of recruitment will be used
|
||||
@ -264,15 +264,19 @@ if ($object->date_planned > $now) {
|
||||
print '</b><br>';
|
||||
|
||||
// Contact
|
||||
print $langs->trans("ContactForRecruitment").' : ';
|
||||
$tmpuser = new User($db);
|
||||
$tmpuser->fetch($object->fk_user_recruiter);
|
||||
|
||||
print $langs->trans("ContactForRecruitment").' : ';
|
||||
$emailforcontact = $object->email_recruiter;
|
||||
if (empty($emailforcontact)) {
|
||||
$emailforcontact = $tmpuser->email;
|
||||
if (empty($emailforcontact)) {
|
||||
$emailforcontact = $mysoc->email;
|
||||
}
|
||||
}
|
||||
print '<b>';
|
||||
print $tmpuser->getFullName(-1);
|
||||
$emailforcontact = $tmpuser->email;
|
||||
if (empty($emailforcontact)) {
|
||||
$emailforcontact = $mysoc->email;
|
||||
}
|
||||
print ' - '.img_picto('', 'email', 'class="paddingrightonly"').dol_print_email($emailforcontact);
|
||||
print '</b>';
|
||||
print '</b><br>';
|
||||
|
||||
@ -100,6 +100,7 @@ class RecruitmentJobPosition extends CommonObject
|
||||
'qty' => array('type'=>'integer', 'label'=>'NbOfEmployeesExpected', 'enabled'=>'1', 'position'=>45, 'notnull'=>1, 'visible'=>1, 'default'=>'1', 'isameasure'=>'1', 'css'=>'maxwidth75imp',),
|
||||
'fk_project' => array('type'=>'integer:Project:projet/class/project.class.php:1', 'label'=>'Project', 'enabled'=>'1', 'position'=>52, 'notnull'=>-1, 'visible'=>-1, 'index'=>1,),
|
||||
'fk_user_recruiter' => array('type'=>'integer:User:user/class/user.class.php', 'label'=>'ResponsibleOfRecruitement', 'enabled'=>'1', 'position'=>54, 'notnull'=>1, 'visible'=>-1, 'foreignkey'=>'user.rowid',),
|
||||
'email_recruiter' => array('type'=>'varchar(255)', 'label'=>'EmailRecruiter', 'enabled'=>'1', 'position'=>54, 'notnull'=>0, 'visible'=>-1, 'help'=>'ToUseAGenericEmail'),
|
||||
'fk_user_supervisor' => array('type'=>'integer:User:user/class/user.class.php', 'label'=>'FutureManager', 'enabled'=>'1', 'position'=>55, 'notnull'=>0, 'visible'=>-1, 'foreignkey'=>'user.rowid',),
|
||||
'fk_establishment' => array('type'=>'integer:Establishment:hrm/class/establishment.class.php', 'label'=>'Establishment', 'enabled'=>'$conf->hrm->enabled', 'position'=>56, 'notnull'=>0, 'visible'=>-1, 'foreignkey'=>'establishment.rowid',),
|
||||
'fk_soc' => array('type'=>'integer:Societe:societe/class/societe.class.php:1:status=1 AND entity IN (__SHARED_ENTITIES__)', 'label'=>'WorkPlace', 'enabled'=>'1', 'position'=>57, 'notnull'=>-1, 'visible'=>-1, 'index'=>1, 'help'=>"IfJobIsLocatedAtAPartner",),
|
||||
@ -123,6 +124,7 @@ class RecruitmentJobPosition extends CommonObject
|
||||
public $fk_soc;
|
||||
public $fk_project;
|
||||
public $fk_user_recruiter;
|
||||
public $email_recruiter;
|
||||
public $fk_user_supervisor;
|
||||
public $fk_establishment;
|
||||
public $date_planned;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user